Forum Moderators: phranque
Spot the code hack... I'm using the .htaccess commands below to forward users from the one domain to another regardless of whether they use the www:
#-----------------------------------------
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.onedomain\.co.uk [NC]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ http:// www.anotherdomain.com/$1?%1 [R=301,L]
RewriteCond %{HTTP_HOST} ^onedomain.co.uk
RewriteRule (.*) http:// www.onedomain.co.uk/$1 [R=301,L]
#----------------------------------------- (delinkled)
Am I OK combining them in this way or is there a slimmer method? this way seems a bit loopy
Cheers, Limbo.