Redirect 404 to Homepage

Description

Redirect all 404 missing links to the homepage using a 301 redirect. This means any old broken links will still count towards your site’s SEO ranking.

This plugin is designed to be very lightweight. There are no options or settings (or annoying banner ads trying to sell SEO services). Simply activate the plugin and you’re good to go. It will redirect 404s silently in the background without slowing down your website.

Features

  • Works with any theme.
  • Works on any host.
  • Super lightweight (only 6 lines of code).
  • Helps with SEO.
  • Unlike other plugins, this is 100% free and we don’t sell upgrades/marketing.

Installation

  • Go to the Plugins > Add New screen in your WordPress dashboard.
  • Search for “404 to homepage”. Click Install and activate it.
  • That’s all! If you try accessing a page which does not exist, you will be redirected to the homepage.

FAQ

Will this plugin work with my theme?

Yes, this plugin will work with any theme.

Will this plugin slow down my website?

Nope! This plugin will have no impact on your website’s speed.

How do I know it is working?

Try going to any link on your site which does not exist. e.g. www.example.com/this-does-not-exist. You should be redirected to the homepage.

Reviews

5 August 2023 4 replies
Unfortunately, it took me too long to find out that Google can't find my XML sitemap anymore since I activated the plugin. Trying to access my sitemap ended up on my websites homepage. I had to deactivate the plugin. Now my sitemap can be found again. [EDIT] The author modified the plugin so my XML sitemap is not redirected to the homepage anymore. The plugin should have a setting that allows users to exclude URLs from redirection.
19 October 2022
Plugin is working for my site. I like that there are no options and it just works right away. Thank you!
28 July 2021 1 reply
This plugin redirects all links to homepage, and this is very harmful. Affiliate links do not work with this plugin. Instead of redirecting the 404 page to the front page, it redirects all links, including affiliate links, to the front page.
Read all 10 reviews

Contributors and Developers

“Redirect 404 to Homepage” is open source software. The following people have contributed to this plugin.

Contributors

Change Log

1.0

  • Initial release.