Shopify Site with Multiple Domains?
-
Hey there!
My client has a website on Shopify. I don't even know how to open this can of worms, but let me try.
The site URL is: https://mobilityequipmentforless.com/
However, there is another (older?) URL that gets updated as the main site gets updated and shows the exact same content. It's a straight duplicate, but is it's own URL and doesn't redirect to the main site.
https://www.powerchairrecyclers.com/
And this isn't the SITE.Shopify back-end site name that was used for set up initially.
I just have no idea what's going on here. Not sure if it's a serious error that needs to be fixed, or if it's something weird with how Shopify work.
Any insight would be immensely helpful.
Thanks!
- Mike
-
Hello Mike,
This may be hurting your presence on one or the other site. Duplicate content is typically frowned upon. You can get around this by simply assigning a canonical URL in the head of the HTML. A canonical URL tag tells the search engine "hey, the content is also accessible here but the official page is actually at example.com".
I went ahead and checked the HTML of both pages and they already have a canonical URL set to the main website address you posted. So it looks like you're good to go!
-
Thanks for the insight =]
-
So the secondary URL shouldn't do a full redirect to the main URL?
-
Unless there is a technical or business reason for keeping the second url, it would be best to redirect everything to the primary url.
Go to: Shopify Admin > Online Store > Domains
- Make sure all your domains are added, and that the correct domain is set as the Primary domain
- Make sure "Traffic from all your domains redirects to this primary domain" is set
Alex
-
I checked the theme.liquid file in between the head tags and I don't see anything referencing a canonical URL.
Where do you see that a canonical URL is set?
-
I concur. Check with the business owner to see why both domains are operable. If there isn't a technical reason, redirect all traffic to the main domain.
-
I checked the page source. You can do this by heading to any web page, right clicking and selecting "view page source".
In Shopify, you can output the canonical url using the canonical_url object. I found this here: https://www.shopify.com/partners/blog/canonical-urls
{{ canonical_url }}