We had it in the past repeatedly, again today and I should like to write a few words. The topic:
Domain change at a Magento shop. shop1.de to the future under shop2.de be available. Die URLs (such categories, Products, Pages, etc.) but will remain the same all.
so shall https://www.shop1.de/kategorie/unterkategorie/produkt.html the future under https://www.shop2.de/kategorie/unterkategorie/produkt.html be available.
What needs to be held? (If the shop to Google already well ranked yet? Only then step 6 note!)
- Creating the new domain so, to point to the existing shop. If so, you should call for the new domain to the old domain (So the current Store) be directed. If so, it can go further.
- If it is a multi-shop system with multiple URLs, leading to various shops? Then check the .htaccess and index.php in this and already preparing for the new domain (So replace old domain with a new) but not upload.
- In the backend under Configuration > Web Replace the old domain to the new domain and save. (In parallel, in step 2 customized(n) File(in) Upload).
- Clear cache can not hurt.
- So, Now the shop is always accessible via the new domain. But we want to, that all links, floating around outside and still on the old domain does not point directly to the new domain will be rerouted and indeed to the landing page (as it currently would be the case) but directly to the desired URL including. Kategorie etc.. For this, a section must be pure in the .htaccess. In the area under “RewriteEngine on” insert the following:
RewriteCond %{HTTP_HOST} ^(?:www.)shop1.de$ [NC]
RewriteRule ^ https://www.shop2.de%{REQUEST_URI} [The,R = 301]
In this way, each base is routed directly to the subpages of the new domain. - or to avoid losing the Google ranking. Google to help in the classification of the domain change, you should let Google know about the change of the domain. For this purpose, reports to the Google Search Console looks at and, whether there is already a project for the current store (shop1.de) consists. Unless, this needs to be created. Thus, BEFORE you the steps 1-5 this manual carries, because you only have to prove the property at the current shop for investment of the project. This can be done either through a DNS entry or an HTML file, that you copied to the root directory. Once this is done, and Google has acknowledged ownership, it can go further.
The steps 1-5 the guidance can now be executed, the old domain to be replaced by the new and the 301 he put Rewrites about the .htaccess.
Then then create and a new project with the new domain then https://www.google.com/webmasters/tools/change-address?hl=de&siteUrl=https://www.shop1.de/ call. Now right choose the new project and follow the steps. - Last must be in the shop itself looked to be in many places, where the domain (and / or the store name) needs to be changed:
– General information
– accounting documents
– Payment Methods (Amazon Pay For example, look at the URL from the payer is)
– licenses (e.g.. Extensions), drawn on Domains
– Legal and other CMS pages
– statically links set
-….. - Then a new Sitemap should not be created on the back end and it does not hurt the indices to allow re-create.
All in all, actually not that complicated but with a number of pitfalls.
I hope, that this guide helps one and the other in this situation.