Tree Established Member โ 15 โ Impact 9 Apr 11, 2006 1K views 2 replies #1 How can I redirect a subdomain using .htaccess? I've Googled, and found nothing relevant. I suspect it has something to do with mod_rewrite?
How can I redirect a subdomain using .htaccess? I've Googled, and found nothing relevant. I suspect it has something to do with mod_rewrite?
Eric VIP Member VIP โ 20 โ Impact 328 Apr 11, 2006 #2 Something like this? Code: RewriteEngine on RewriteCond %{HTTP_HOST} ^sub\.domain\.com RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301, L]
Something like this? Code: RewriteEngine on RewriteCond %{HTTP_HOST} ^sub\.domain\.com RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301, L]