Forum Moderators: phranque
I have website A in the /public_html/ folder
there are two domains pointing at it, websitea.com, websitebbb.com
if someone arrives at websitebbb.com/fishing.php i want to redirect them to websitea.com/fishing.php.
Can this be done with .htaccess?
Many thanks,
hughie
RewriteCond %{HTTP_HOST} ^72\.3\.232\.139 [OR]
RewriteCond %{HTTP_HOST} ^webmasterworld\. [NC]
RewriteRule ^(.*) [webmasterworld.com...] [R=301,L]
That hard redirects anyone coming in on an ip, or non www. domain name to webmasterworld - to the real www.webmasterworld.com
[edited by: jdMorgan at 11:10 pm (utc) on Feb. 26, 2007]
[edit reason] Speling [/edit]