Jump to content

SEO new domain


Recommended Posts

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

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

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

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