Need help with 301 Redirect www.site.com ---> http://site.com
I am trying to create a 301 redirect from my wordpress site www.mysite.com ------> http://mysite.com
The advice at bluehost is useless, 3 people have told me all sorts.
After some research, I put this code in the htaccess file...
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
then i get an error in the browser when i test it on my site like this --
"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.
* This problem can sometimes be caused by disabling or refusing to accept
cookies."
Can someone please help me with this, because as you know, it's important due to SEO purposes.
Thanks
-
dgarlock -
[ 1 ] Thanks - 1 reply
Signature{{ DiscussionBoard.errors[1584832].message }}-
TheWinner -
Thanks - 1 reply
{{ DiscussionBoard.errors[1584926].message }}-
TheWinner -
[ 2 ] Thanks - 1 reply
{{ DiscussionBoard.errors[1588046].message }}-
RaquelleMVP -
Thanks
{{ DiscussionBoard.errors[2270191].message }} -
-
-
-
-
TPFLegionaire -
Thanks
SignatureSave Kim Winfrey! Buy the WSO or donate.As an aside use the products in the WSO to make tons of cash!{{ DiscussionBoard.errors[2481937].message }} -