Need to remove www from sudomains not from main domains |
[eluser]Md. Ruzdi Islam[/eluser]
Hello experts, I need to remove www from sudomains not from main domains. Such as my domain name is mydomain.com if any one browse http://mydomain.com then it redirects to http://www.mydomain.com is working correctly using following rule -- Code: RewriteEngine on now comes to subdomain. i added blog.mydomain.com but this time i want if someone browse http://www.blog.mydomain.com then it redirects to http://blog.mydomain.com here how do i check that i am subdomain or main domain and what will be the htaccess code for this situation??? Ruzdi
[eluser]InsiteFX[/eluser]
Here are a couple of good links on .htaccess writing. .htaccess tips and tricks more .htaccess tips and tricks.. InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |