On 01/20/2011 09:00 PM, --[ UxBoD ]-- wrote:
Hello all,
Now the issue comes when I am trying to redirect a domain URL in the following formats: http://somedomain.com http://somedomain.co.uk http://www.somedomain.co.uk and wish them all to be re-written as: http://www.somedomain.com I have tried using the following rule: RewriteCond %{HTTP_HOST} ^somedomain.co.uk$ [NC,OR] RewriteCond %{HTTP_HOST} ^somedomain.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.somedomain.co.uk$ [NC,OR] RewriteRule ^(.*)$ http://www.somedomain.com/$1 [R=301,L]
Do you have 'RewriteEngine on'? Did you try turning on RewriteLog/RewriteLogLevel 9 ?
Joost --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx