404 redirects, few questions.

Tourist
15 0 1

Hi, I'd like to know if there is a way to redirect all 404 to the closest relevant page, (only in case I didn't set specific redirect)

Example 1:
https://www.store.com/collections/collection1/products/product1

in the case of 404 redirects to:
https://www.store.com/collections/collection1

Example 2:
https://www.store.com/products/product1

in the case of 404 redirects to the product type collection:
https://www.store.com/collections/product1type

I'd like to redirect collections 404's to the home page if possible.

Also, is it possible to hide out of stock products from all collections but keep them published on the online store?

0 Likes
Shopify Partner
1022 0 109

Hi Ariyeh,

You can personalize 404 page to your liking, it's a great practice to have it setup. If you want a redirect, simply setup 301 redirect from each inactive page to the page of your choice - so instead of error page, your visitors will see an alternative page, that's the best way to implement what you are after.

Product needs to be in a collection, simply pick a collection unlisted and voila you have a searchable product yet unlisted in any visible category. Hope that helps!

 

Maggie Tuczapska

Rock Paper Copy

maggie@rockpapercopy.com

Get exclusive access to SEO tips and traffic building strategies (it's free) - Subscribe to my daily newsletter!

Skyrocket your traffic with social media marketing

http://www.rockpapercopy.com

Learn How to Set up a Shopify Store. Join our Shopify Training Course today: http://bit.ly/ShopifytrainingSEO
0 Likes
Shopify Expert
244 0 38

Interesting ideas.

With the out of stock idea. Maybe not hide, but move them to the end of the list.

Technical SEO Consultant - Specialising in setting up Structured Data for Rich Snippets, Google Analytics for advanced reports and the Google Search Console for efficient crawling.
0 Likes