How to Move Your Website Without Losing Google Rankings

When a company orders a new website, the biggest worry is usually not the design but Google. The old site, however dated, has spent years collecting links, search rankings and ads that point to specific addresses. If the new site does not take those addresses over, a visitor from Google or an ad lands on a 404 error, and over time Google drops those pages from its results.
This is how we did it for Auto Grifon, a Peugeot dealer in Zagreb, when we replaced their old WordPress with a completely new site on the same address, autogrifon.hr.
1. List everything the old site has
Before the first design move, we listed every page and post on the old site. For Auto Grifon that meant the model, service, used car and contact pages, plus 351 news and special offer posts. The list is the basis for everything that follows: whatever is not on it is easy to forget.
You can build this list from the old site's sitemap, from Google Search Console (pages with impressions and clicks) and, with WordPress, by exporting all posts.
2. Decide what moves and what does not
Not everything is worth moving. Among Auto Grifon's posts were 32 with no real content: 27 empty ones and 5 with a single sentence. We agreed with the client not to move them. The other 319 moved to the new site, and posts without a picture got a matching image.
Even what you remove must not vanish without a trace. Its address should still lead somewhere sensible, in our case to the news list.
3. Every old address leads to a new one
This is the most important step. A permanent redirect (301) tells the browser and Google that the page has moved to a new address. The visitor barely notices, and Google passes the value of the old page on to the new one.
For Auto Grifon we set up almost 400 such rules. A few examples:
- /ponuda-peugeot-vozila/novi-3008/ leads to /vozila/3008/
- /komercijalna-vozila/ leads to /vozila/
- /novi-peugeot-508/ leads to /novosti/novi-peugeot-508/
The rule is simple: an old address leads to the most similar new page, not to the homepage. If every old address points to the homepage, Google mostly treats them as pages that no longer exist.
4. Ads, analytics and cookies stay the same
Auto Grifon runs Google Ads campaigns that point to specific pages of the old site. That is why the redirects were ready before the new site went live, not after. Google Tag Manager and Cookiebot stayed the same, so ads and analytics carry on where they left off.
5. The new site lives on a test address first
The new site first ran on a test address, hidden from Google, until the client had reviewed it. Meanwhile the old site kept working as usual. Only after approval did the new site replace the old one on autogrifon.hr, and the old site's content was exported and kept.
6. After the switch
Once the new site is live, a few more things follow: a new sitemap.xml and robots.txt, a proper 404 page for addresses that do not exist, and adding the site and its sitemap to Google Search Console. Over the next weeks Search Console shows which old addresses Google still requests and which end in an error, so new redirects can be added where needed.
Checklist before moving your website
- A list of every page and post on the old site
- A decision on what moves and what does not
- A 301 redirect for every old address, to the most similar new page
- A check that ads point to pages that exist
- The same Tag Manager, analytics and cookie settings
- The new site on a test address, hidden from Google, then a review
- After the switch: sitemap, Search Console and a 404 page
- Watching Search Console for errors for a few more weeks
What if the old site is already gone?
If the new site is already live and there are no redirects, it is not too late. Search Console shows the addresses that return a 404 error, and old addresses can often be found in the Internet Archive (web.archive.org). Redirects can be added afterwards; some visits will simply have been lost by then.
The whole project is described on the page Auto Grifon: new website for a Peugeot dealer. Moving content from the old site is part of every website we build. If you are planning a new site and worry about Google, get in touch.