Jump to content

[Solved] 301 redirect to www version


Recommended Posts

I am trying to redirect the non www version of my site to the www version "www.domain.com". My host is Heart internet. They advised me to redirect the site to the www version I should upload an htaccess file as follows (replacing the "example.com" with my domain name):

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

I have done this on a brand new install of Prestashop, but when I open the browser I get the 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.

This is regardless of which browser I use.

Can anyone advise please, as their support think a redirect is already in place and is causing some sort of loop when trying to access the site. I have only installed a default version of Prestashop.

Thanks for any advice you can give me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...