We have had a SEO report done that has flagged the fact that our site is available via both www.accountz.com and accountz-com.myshopify,com as duplicate content.
I read the following post: http://ecommerce.shopify.com/c/shopify-discussion/t/prevent-myshopify-com-address-from-displaying-39... which says "My shopify url isn’t indexed by google" but if I search for "site:accountz-com.myshopify,com" I can see that it is being indexed by google.
I followed the post's instructions to remove the accountz-com.myshopify,com site from Google via the web master tools.
Google web master tools says to ensure the site is permanently removed the robots.txt file should be updated to disallow crawlers to the site. I know we can not change the robots.txt file in shopify so how are we supposed to stop search engines indexing the myshopify,com version of our sites again in future.
I had assumed that if we added our own domain in Shopify and set it as the primary domain that shopify would update the robots.txt of the accountz-com.myshopify,com domain to disallow everything, but it does not.
Can someone please explain the apparent disparities regarding the myshopify,com versions of our sites?
Solved! Go to the solution
The solution to this is very simple: go to Settings and then Domains in your store's admin. Then click on Set as primary. Select www.accountz.com under Change your primary domain to. And check the box 'Redirect all traffic to this domain'. The issue is that you forgot to redirect all traffic to your domain!
This is an accepted solution.
As of today, June 21st, 2021, we have launched the ability to edit the robot.txt file to give merchants more control over the information that is crawled by search engines. You can learn more about how to edit your robot.txt file through our community post here.
Due to the age of the topic, I will be locking this thread and marking it as resolved to help direct anyone that lands on this page. If you have any questions about the new feature, please do not hesitate to create a new post under our "Techincal QA" board.