polat Posted December 11, 2009 Posted December 11, 2009 I would like to setup canonical domain names for SEO purposes. I used method described Here. But when I edit .htaccess file exactly described there and upload to server, I get this error message: "The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete." What am I doing wrong. Thanks Quote
TCH-Bruce Posted December 11, 2009 Posted December 11, 2009 It would help if you showed us what you entered in the .htaccess file. Quote
polat Posted December 11, 2009 Author Posted December 11, 2009 (edited) This is the first one which I tried: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mywebsite\.com RewriteRule ^(.*)$ http://www.'>http://www.mywebsite.com/$1 [R=301,L] This is the second one which I tried: Options +FollowSymlinks RewriteEngine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^(.*)$ http://www.mywebsite.com/$1 [R=301,L] At second rule my website has index.php as well. Both caused same error. Edited December 11, 2009 by polat Quote
TCH-Bruce Posted December 11, 2009 Posted December 11, 2009 This should work if placed in "public_html" ><IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.your-domain\.com$ RewriteRule ^(.*)$ http://your-domain.com/$1 [R=301,L] </IfModule> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.