Gfinfo web Posted April 2, 2024 Share Posted April 2, 2024 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. 1 Link to comment Share on other sites More sharing options...
Whiley Posted April 3, 2024 Share Posted April 3, 2024 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, 2024 Author Share Posted April 3, 2024 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, 2024 Share Posted April 7, 2024 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> 1 Link to comment Share on other sites More sharing options...
willsmith79052 Posted November 17 Share Posted November 17 If you are moving from domain A to domain B the safest way is: First set the new domain in Prestashop (EO and Urls settings) Then ask your hosting provider to set a 301 permanent redirect from the old domain to the new one. Finally clear your Prestashop cache so Google sees the change properly. This keeps SEO value and send visitors automatically to the new domain with no issues. 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