From Flanders Posted April 2 Share Posted April 2 Hello, I created a new domain for my webshop. Now I am looking for a module where I can forward from the old domain to the new domain. example : www.olddomain.com/en/product1.html to www.newdomain.com/en/product1.html (products and categories are the same) So I don't loose my SEO rankings. I have more then 5000 products. Module should be at the new domain so I can delete the old one. Which module can you recommend? Link to comment Share on other sites More sharing options...
Daresh Posted April 2 Share Posted April 2 Something like this does not require a module, a few lines in .htaccess should be enough: <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...
ZHSoft Posted April 7 Share Posted April 7 On 4/2/2024 at 6:29 PM, Daresh said: Something like this does not require a module, a few lines in .htaccess should be enough: <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> @From Flanders great. .htaccess file, located in the file root directory. 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