How to configure cross-domain canonical URL
This page shows how to configure cross-domain canonical URL, which might be useful if you have a multistore configuration and if you want to avoid duplicate content across different domains, to consolidate SEO value to a single primary domain and to define main version of the content.
The appropriate setting is placed in Marketing -> Settings -> SEO general settings -> Canonical settings -> Common settings -> Cross-domain canonical URL. It sets the default cross-domain canonical URL for multistore configurations.
For example, you have the following stores:
http://example.com/
http://mystore.com/
http://site.com/
If you click dropdown of the Cross-domain canonical URL configuration, you will see the Default store URL option and those URLs.
When a Default store URL is chosen, that website's URL will be used as the canonical URL (for http://example.com/
canonical URL will be http://example.com/.../
).
Select necessary website that will be canonical version for other sites. If you select, for example, http://mystore.com/
all stores will have this URL as a canonical:
- for
http://example.com/
canonical URL will behttp://mystore.com/.../
- for
http://mystore.com/
canonical URL will behttp://mystore.com/.../
- for
http://site.com/
canonical URL will behttp://mystore.com/.../
When changes are made, click Save Config button and clean Magento cache to implement them.
You can learn more about the canonical settings on the SEO general settins page.