
A website mirror is a full or partial duplication of a web resource in terms of content. For example, any web resource can be accessed via two URLs: one with www at the beginning of the address and one without it. For search engines, these are completely different platforms, even though their content is identical.
Why create a website mirror? Because it is one of the key aspects of SEO optimization. If you don’t do this, search engines will choose the main mirror on their own. And most likely, you’ll end up promoting a completely different domain name.
Finding the Primary Website Mirror
For search engines, mirrors are considered duplicate content. As a result, they lower rankings in search results. So it’s important to understand how to find a website mirror.
The first method is to add all versions of the web resource to Google Search Console:
- https://example.com
- http://example.com
- https://www.example.com
- http://www.example.com
Over time, you will see whether they lead to the same site or are indexed separately.
The second method is directly through Google search: first, enter site\:example.com in the search bar, analyze the results, then enter site\:www\.example.com and compare the pages.
Read also: What is a Search Engine Robot and How to Manage It
Proper Merging of Website Mirrors
Indexing the website mirror is essential for search engines. This way, they understand which address should appear in search results. That’s the first point. The second is that having multiple mirrors complicates the promotion of the web resource.
When placing external links, you might accidentally specify an alternative URL. The link equity will be divided among different addresses, and the site's actual positions in search results will be lower than expected.
This issue can be avoided by merging the mirrors. With this method, all metrics are combined, and redistribution of link equity becomes irrelevant.
If you don't know how to mirror a site, you just need to follow these steps:
- Set up a 301 redirect in the .htaccess file.
- Install canonical tags. It is enough to add the following to the <head> of each page: <link rel="canonical" href="https://example.com/this-page-url">.
- Add all mirrors to Google Search Console as separate sites. Then, in the settings of each, specify the main address. Search engines will understand which version of the web project is primary, based on redirects and canonical tags.
- Update the sitemap.xml file, adding only canonical URLs.
If you have changed your site's hosting along with the domain — merging is also a mandatory procedure. It will help transfer all the SEO progress (rankings, backlinks) from the old site to the new one.
Conclusions
Now you know what a website mirror is and why it is needed. Situations may vary:
- Usually, the need to create a website mirror arises to redirect the address from www to the same address without it.
- Sometimes, when working on backlinks, mistakes are made in setting reverse links. As a result, link equity is split, and this needs to be corrected.
- And sometimes it becomes necessary to abandon an old domain and move the web resource to a new one — while preserving all achievements (rankings, link equity, site structure).
This is common in SEO. A lot can happen during promotion, and drastic measures are often required. But knowledge about website mirrors and how to properly configure them simplifies solving such problems.