Gfinfo web Posted April 2 Share Posted April 2 Hello, 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 More sharing options...
Whiley Posted April 3 Share Posted April 3 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. Whiley Link to comment Share on other sites More sharing options...
Gfinfo web Posted April 3 Author Share Posted April 3 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 More sharing options...
ZHSoft Posted April 7 Share Posted April 7 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] </IfModule> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now