Hi,
I have a website let's say www.webmasterworld.com
And I have a subdomain something.webmasterworld.com
Both main domain and sub domain are pointing to directory "public_html"
I have .htaccess on root which redirects any URL without www to www. For e.g. if user enters webmasterworld.com then he will be redirected to www.webmasterworld.com If user enters webmasterworld.com/mypage.htm then he will be redirected to www.webmasterworld.com/mypage.htm
Now the problem is this is also affecting my subdomain. Because if someone enters something.webmasterworld.com/visit.htm then he is redirect to www.webmasterworld.com/visit.htm
I don't want this! If user enters subdomain then I don't want to redirected to www domain. This is what I have in my .htacces file
RewriteCond %{HTTP_HOST} !^www.webmasterworld.com$ [NC]
RewriteRule ^(.*)$ [
webmasterworld.com...]
[R=301,L]
Can you please tell me what should I do to solve above problem?
Thanks