• Resolved shaische

    (@shaische)


    According to the plugin, I am getting a lot of 404 errors from pages that were deleted but also from some random urls that look like system files.

    I don’t want to spend time re-directing every single 404 url to homepage. How can I redirect ALL 404 urls to homepage?

    I originally found this plugin that does just that, but it has issues, such as redirecting sitemaps.xml’s and the admin login, so I uninstalled it and started using your plugin. But I don’t see the option to do this? Or perhaps I don’t know how. Can you please help?

    I want to make sure I don’t accidentally redirect bots (unless it should), sitemaps or admin login page.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    You don’t need to redirect all 404s, and I don’t advise that you do so – it can have a negative effect on your site. The correct response for a page that doesn’t exist and has never existed is a 404.

    Thread Starter shaische

    (@shaische)

    Hi John, thanks for the quick reply! If it never existed in the first place, I can understand that. However, we do have some pages that were deleted and products that we sell that are no longer there, which also point to a 404. Setting up a 301 redirect for every link is a lot of work and I think an automatic solution of some type would be much better? Such as automatically 301 any deleted WooCommerce products or any deleted posts/pages?

    But since these are already deleted, isn’t there a way to set up a redirect automatically?

    Plugin Author John Godley

    (@johnny5)

    A 410 response is generally better. A 301 is essentially saying ‘this URL now exists somewhere else’, which is incorrect if it’s a deleted product – it doesn’t exist somewhere else.

    You can use a URL and WordPress page type match:

    https://redirection.me/support/matching-redirects/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirect all 404 automatically except certain pages’ is closed to new replies.