Jump to content

Changing Domain Name Tips Requested


davers44

Recommended Posts

  • 2 weeks later...

Thanks for your reply I apprecieted,

 

your google link is suggesting to use 301 to redirect ALL pages to new domain, can I give me some tips what should I do to redirect all of them to new links?

 

If someone follow an old product link will he get the new correct product link or just get redirected to the new main website?

 

I also found this interesting guide, do you think also suchl steps need to be applied to prestashop?

 

http://www.seomoz.org/blog/seo-guide-how-to-properly-move-domains

Link to comment
Share on other sites

It isnt as simple as it seems, in most cases it is necessary to edit all rewrite parameters in htaccess file...

 

But you can try code that i pasted below. It works only if you've got the same URLS to pages on the new domain

 


RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !newdomain.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

 

remember to make a backup of htaccess before you will apply any changes to this file

  • Like 1
Link to comment
Share on other sites

Thanks a lot vekia, I read many SEO guides and Google articles and seems like your 301 code htaccess is really suggested and should be the standard thing to add to htaccess when path do not change. I think that will help anyone planning to change domain to their prestashop site.

 

However I still have a main doubt on the actual changing domain process. Most guides I read do not cover e-commerce, focusing on changing domain to new rebranded website but I will keep the same website (and database) changing only domain name, so what do you suggest between 1 and 2 solutions?

 

1. Should I simply point via DNS both new domain and old domain to my prestashop directory and add the above 301 redirect to the htaccess file, regenerate sitmap and database domain entries?

 

2. Or I need to install a copy of the my prestashop and database into another folder pointing new domain to it, thus running two separate shops with two different htcacess, files and sitemaps ?

 

Thanks

Link to comment
Share on other sites

You don't have to duplicate database and all files. I think that the best solution will be:

 

1) create new empty directory with .htaccess file with:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !newdomain.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

and point your old domain to this new directory (this is on the the same server, you don't change DNS entries - so you dont have to "fight" with propagation time, woohoo! ;) )

 

2) point new domain to the prestashop directory and of course change configuration parameters for new domain

 

it will work like a charm :-) without "downtime" and without seo loss

Link to comment
Share on other sites

  • 2 months later...

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