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]