im not sure if this is in the right section but I was wondering how do I redirect the url below to the url below it... www.subdomain.yourdomain.com Redirect to: subdomain.yourdomain.com Please help me as I have no clue how to do it.. thanks
Put this in the .htaccess file at subdomain root. RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.subdomain\.domain\.com$ [NC] RewriteRule ^(.*)$ http://subdomain.domain.com/$1 [R=301,L] Code (markup):
Will it work? on www.domain.com www considered as sub domain while on www.sub.domain.com why is www there?