Forum Moderators: phranque

Message Too Old, No Replies

redirect specific domain in .htaccess?

         

latifa

9:50 am on May 22, 2004 (gmt 0)



Hello-
I'd like to redirect a specific domain (all from .sc.rr.com) to a specific section of my site. (say /roadrunner/) Is it possible to do this with .htaccess, and if so, how?

Thanks-

jdMorgan

1:53 pm on May 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



latifa,

Welcome to WebmasterWorld [webmasterworld.com]!

Yes, use


RewriteCond %{HTTP_HOST} ^domain_to_be_redirected\.com

ahead of your RewriteRule to make it conditional, based on the requested domain name.

Jim