404's Wordpress products
-
Hi Guy's,
On a Wordpress website we have a SEO Ultimate plugin running. Every day i get lot's of 404 errors of products that doesn't exist anymore (but are indexed, site: .... ).
In the beginning we had lot's of testproduct that are not coming back in the shop. So i was wondering if there is a way to automaticly redirect product when there are out of stock, or not comming back anymore... So my 404's can be fixed.
Thanks!
-
Hi,
What you could do is a built a custom filter that would redirect the products that are not available anymore and direct it back to either the category they belong to our the homepage of the products. As it probably isn't an available feature you would have to code that yourself, but I'd say it would make sense to have.
-
Yes, that could me possible.
But it also could be possible that a product will be in stock later, and then it will redirect to the homepage of category. So then we have to find a way to drop the redirect automaticly
-
That's probably why you would like to check the status of the product to see if it's out of stock or not and based on that redirect the user or not.
-
You can use anything below to automatically redirect a 404 to a 301
https://wordpress.org/plugins/redirection/
https://wordpress.org/plugins/404-redirector/
https://wordpress.org/plugins/seo-redirection/
https://wordpress.org/plugins/quick-pagepost-redirect-plugin/
-
You could take all of the suggestions above, but I would actually make sure redirection is the best choice. Watch Matt Cutt's video here about what to do with expired products: https://www.youtube.com/watch?v=9tz7Eexwp_A - he explains that in some cases users may prefer to see a 404.
-
I got a agree with Dan on this one. If you're 301 redirecting to non-relevant pages is pretty much worthless. a plug-in that deals with removing products is better than a default 301 to something that's not a relevant landing page/Product page