Jump to content

How To redirect the whole prestashop with 301?

Recommended Posts


Does anyone know how do I redirect the whole prestashop from domaninA.com.br to domainB.com.br using redirect 301.

Using prestshop 1.6.

I really have no ideia what i am doing here. First time doing this kind of thing.

Really need baby steps here. 

If anyone can help Thank you.


Link to comment
Share on other sites

You need a .htaccess file at your old domain domaninA.com.br with the content:


RewriteEngine On

RewriteCond %{REQUEST_URI} (.*)

RewriteRule ^(.*)$ https://domainB.com.br/$1 [L,R=301]

Of course, you have only success If the new domain matches exactly the old one and if the rewrite-mod is activated at your server.



Link to comment
Share on other sites

Thank you Whiley,

I just have to corrcet one thing as i got new information.

I was informed it is actually a new E-Commerce, is not just a migration, is not even a prestashop instalation. 

It defenetly will not match exactly the links. 

Do you know how will this impact the redirect?

Once again thank you for the information.

Link to comment
Share on other sites

Something like this does not require a module, a few lines in .htaccess should be enough.

.htaccess file, located in the file root directory.

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.olddomain.com$
    RewriteRule (.*)$ https://newdomain.com/$1 [R=301,L]


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...