Hello,
When items we sell are discontinued, we want the product page, which is indexed by Google to still be accessible through the url of that product page but we do not want that product to be searchable/findable on the website itself, and we don’t want the product to show up on any collection pages.
So right now we have these discontinued products set to “Draft”. As a draft item the items are not searchable on our website, and they do not show up on product pages. But are the urls of these draft products , urls which are indexed by Google, still reachable ? Or will Shopify redirect anyone who tries to go to the url of a draft product to some other page ?
Our site is still in testing phase, being migrated from another platform to Shopify, and it’s not ‘live’ which is why we can’t answer this ourselves right now.
From our admin, we can certainly preview the product page of the “draft” items so it appears the urls will be reachable, I just don’t know once we make the website live if those “draft” product urls will automatically redirect somewhere else.
Thanks
Stephen
@stevronsmds When a product is set to Draft in Shopify, it is not published to the storefront. While you can preview draft products from the admin, those preview links are temporary and only accessible when logged into your Shopify admin.
Once your store goes live:
-
Draft products will return a 404 (Page Not Found) error for any visitors trying to access the URL directly.
-
Shopify will not automatically redirect visitors to another page.
-
Google will eventually deindex these URLs since they will return a 404.
Solution for Discontinued Products
If you want to keep the product URLs accessible for users coming from Google or direct links, but not show them in search results or collections:
-
Set Products to Active: Keep the product status as Active instead of Draft.
-
Remove From Collections and Search:
-
Use a ‘Noindex’ Tag: Add a meta tag in the theme’s product template for discontinued products:
liquid
{% if product.tags contains 'discontinued' %}
{% endif %}
This prevents search engines from further indexing it but keeps the URL accessible.
- Add a Notice: Optionally, display a “This product has been discontinued” message using Liquid.
This approach will maintain the URL for historical access and SEO purposes while ensuring the product doesn’t appear on the website’s search or collections. Let me know if you’d like additional help implementing this!