Title: All 404 Redirect to Homepage
Author: wp-buy
Published: <strong>March 19, 2014</strong>
Last modified: April 6, 2026

---

Search plugins

![](https://ps.w.org/all-404-redirect-to-homepage/assets/banner-772x250.png?rev=
2281110)

![](https://ps.w.org/all-404-redirect-to-homepage/assets/icon-256x256.png?rev=1515215)

# All 404 Redirect to Homepage

 By [wp-buy](https://profiles.wordpress.org/wp-buy/)

[Download](https://downloads.wordpress.org/plugin/all-404-redirect-to-homepage.5.6.zip)

 * [Details](https://wordpress.org/plugins/all-404-redirect-to-homepage/#description)
 * [Reviews](https://wordpress.org/plugins/all-404-redirect-to-homepage/#reviews)
 *  [Installation](https://wordpress.org/plugins/all-404-redirect-to-homepage/#installation)
 * [Development](https://wordpress.org/plugins/all-404-redirect-to-homepage/#developers)

 [Support](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/)

## Description

By this plugin you can fix all random 404 links appear in you your website and redirect
them to homepage or any other page using 301 SEO redirect. 404 error pages hurts
the rank of your site in search engines. This smart plugin is a simple solution 
to handle 404 error pages.

Elevate your website’s SEO performance and user experience with our Smart 404 Error
Fix & Redirect plugin. This powerful tool automatically identifies and manages random
404 errors on your WordPress site, ensuring that broken links and missing pages 
are seamlessly redirected. By handling these 404 errors with precision, the plugin
directs visitors to your homepage or any other specified page, helping to retain
your audience and improve site navigation.

### Features

 * **Automatic 404 Redirection:** Effortlessly manage broken links and redirect 
   users to relevant pages.
 * **301 SEO Redirects:** Implement permanent 301 redirects to enhance your website’s
   SEO ranking and preserve link equity.
 * **Customizable Redirection:** Choose where 404 errors should be redirected – 
   to your homepage, a custom page, or any URL of your choice.
 * **Soft 404 Handling:** Address and manage soft 404 errors effectively.
 * **Broken Link Management:** Detect and fix broken images and links to maintain
   a smooth user experience.
 * **HTTPS Support:** Ensure compatibility with HTTPS for secure redirection.

### Benefits

 * **Improved SEO:** Reduce the negative impact of 404 errors on your search engine
   rankings with effective 301 redirects.
 * **Enhanced User Experience:** Keep visitors engaged by preventing them from encountering
   error pages.
 * **Easy Setup:** Simple installation and configuration with user-friendly options.

**How to use the plugin?**

 * After installing the plugin go to the plugin control panel from settings menu.
 * Put the link where the plugin should redirect all 404 links in the text box.
 * Select the plugin status to be enabled.
 * Click the button Update Options to save the from.
 * Go to 404 URLs tab to see the latest 404 links discovered and redirected

**Note**
 Please make sure than the page you put above in the control panel to redirect
all 404 to it is a valid link. If this page is not valid it will be considered as
an 404 link and will result in redirect loop. In case of redirect loop you can simply
disable the plugin and check the page is valid or not.

## Screenshots

[⌊Plugin Options.⌉⌊Plugin Options.⌉[

Plugin Options.

[⌊Latest 404 links Redirected.⌉⌊Latest 404 links Redirected.⌉[

Latest 404 links Redirected.

[[

[[

## Installation

Extract the zip file and just drop the contents in the wp-content/plugins/ directory
of your WordPress installation and then activate the Plugin from Plugins page.

## Reviews

![](https://secure.gravatar.com/avatar/9f50abb4c056fed8cc99a1b6371b659107241f765931591b85d7a62ad15027fe?
s=60&d=retro&r=g)

### 󠀁[Undefined variable $class_name](https://wordpress.org/support/topic/undefined-variable-class_name-2/)󠁿

 [kasthamaya](https://profiles.wordpress.org/kasthamaya/) April 12, 2026 2 replies

Great plugin..But I found some warnings in the “query monitor” as follows: Undefined
variable $class_name Caller: wp-content/plugins/all-404-redirect-to-homepage/functions.
php:432 do_action(‘after_plugin_row_all-404-redirect-to-homepage/all-404-redirect-
to-homepage.php’)wp-admin/includes/class-wp-plugins-list-table.php:1512 WP_Plugins_List_Table-
>single_row()wp-admin/includes/class-wp-plugins-list-table.php:1512 WP_Plugins_List_Table-
>display_rows()wp-admin/includes/class-wp-plugins-list-table.php:711 WP_List_Table-
>display_rows_or_placeholder()wp-admin/includes/class-wp-list-table.php:1711 WP_List_Table-
>display()wp-admin/includes/class-wp-list-table.php:1635 Component: Plugin: all-
404-redirect-to-homepagesorry i don’t know, whether reports like this are through
this forum..

![](https://secure.gravatar.com/avatar/ea6d0543003811bf39dfef74a31f15287a49823fc40fb5011edcc3c0d71614b7?
s=60&d=retro&r=g)

### 󠀁[Bad Practice](https://wordpress.org/support/topic/bad-practice-6/)󠁿

 [kloddant](https://profiles.wordpress.org/kloddant/) January 22, 2026 1 reply

It is bad practice to redirect all 404s to your homepage. The 404 error code exists
for a reason: to tell bots and people that the page doesn’t exist. If the page was
changed to a new url, you should do a 301 or 302 redirect, but if the page never
existed in the first place, then 404 is correct. If the page previously existed 
but was deleted, then 410. If you redirect all 404s to your homepage, this will 
confuse bots and visitors and lower your page rank on search engines because they
will detect that your site is not set up properly. Be honest about what you are 
doing; if a page does not exist, tell the user that.

![](https://secure.gravatar.com/avatar/6d76de5e1bd1fa4554ac5c0b5f3ef9db004bd9c72251f1d2193e54cfced0894c?
s=60&d=retro&r=g)

### 󠀁[Fixed My Lost Rankings on WordPress!](https://wordpress.org/support/topic/fixed-my-lost-rankings-on-wordpress/)󠁿

 [Zeeshan Ahmed](https://profiles.wordpress.org/zeeshanahmed24/) March 10, 2025 
1 reply

IT saved my site after I noticed a lot of 404 errors affecting my rankings. Instead
of users landing on broken pages, they now get redirected smoothly to my homepage.
Easy to set up, lightweight, and does exactly what it promises. Highly recommended
for WordPress users dealing with lost links or migration issues!

![](https://secure.gravatar.com/avatar/ec084dea07d9df1692aeefb80c84b582f70b44490bc0e71b34f816e819c019c0?
s=60&d=retro&r=g)

### 󠀁[Too much bloat](https://wordpress.org/support/topic/too-much-bloat-2/)󠁿

 [Dennis](https://profiles.wordpress.org/promptl/) January 27, 2025 1 reply

And it keeps asking me to buy premium…

![](https://secure.gravatar.com/avatar/50bb3303bac1eb743b555dcfa3d8d73a5dca75697c1edc223b2c4ebc45f8332f?
s=60&d=retro&r=g)

### 󠀁[Why not clean the logs?](https://wordpress.org/support/topic/why-not-clean-the-logs-2/)󠁿

 [Gabriel](https://profiles.wordpress.org/jonas720/) October 17, 2024 4 replies

More than 2 years and support does not add option to clear 404 URL log?@techmercando

![](https://secure.gravatar.com/avatar/2cde2196fa70bd061b89558c5f6009644c821699548933f1387dd46d92c389cc?
s=60&d=retro&r=g)

### 󠀁[Seems excellent !](https://wordpress.org/support/topic/seems-excellent-6/)󠁿

 [mjhvc](https://profiles.wordpress.org/mjhvc/) August 27, 2024

Nothing to do other than restart the objet cache 4 everyone extension as suggested.
Now all my 404 are automatically redirected. Good 🙂

 [ Read all 96 reviews ](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/)

## Contributors & Developers

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

Contributors

 *   [ wp-buy ](https://profiles.wordpress.org/wp-buy/)
 *   [ osama.esh ](https://profiles.wordpress.org/osamaesh/)
 *   [ Adam Salah ](https://profiles.wordpress.org/adam1318/)

[Translate “All 404 Redirect to Homepage” into your language.](https://translate.wordpress.org/projects/wp-plugins/all-404-redirect-to-homepage)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/all-404-redirect-to-homepage/),
check out the [SVN repository](https://plugins.svn.wordpress.org/all-404-redirect-to-homepage/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/all-404-redirect-to-homepage/)
by [RSS](https://plugins.trac.wordpress.org/log/all-404-redirect-to-homepage/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 5.6

 * Fixed false “Suspicious host detected” warnings by allowing www/non-www variants,
   port numbers, and CDN/proxy forwarded hosts in URL validation.

#### 5.5

 * Resolved the CanvasJS loading conflict by removing the hard-coded CDN call from
   p404_enqueue_canvasjs_safe().

#### 5.4

 * Added CanvasJS support for statistics and charts
 * Loaded scripts only on plugin settings page to improve performance

#### 5.3

 * Bug fixes
 * Top bar widget
 * 404 statistics
 * Enhancements to existing reports

#### 5.2

 * Checking with the last version of wordpress 6.7.1

#### 5.1

 * Bug fixing in the options

#### 4.9

 * Bug fixing in the log

#### 4.8

 * Bug fixing in the customizer

#### 4.7

 * Checking with the last version of wordpress 6.7.1
 * Adding new options
 * Adding the ability to clear the log

#### 4.6

 * Checking with the last version of wordpress 6.6.1
 * readme.txt some fixes

#### 4.5

 * Bug fixing in “exclude media” option

#### 4.4

 * Introducing a new feature on the plugin options page to prevent the logging of
   media links.

#### 4.3

 * bg fixing in reading htaccess file

#### 4.2

 * bg fixing in htaccess file read

#### 4.1

 * Checking with the last version of wordpress 6.1.1
 * Changing the wording in writing some clarifications to correct the misunderstanding
   of some users

#### 3.8

 * Checking with the last version of wordpress 6.1

#### 3.7

 * fix show more link on network sites

#### 3.6

 * show alert message if you have many broken links
 * compatibility check with wordpress 6.0

#### 3.5

 * Bug fixing – PHP 8.1 issue

#### 3.4

 * Tested with the latest WordPress Version

#### 3.3

 * Addin hint to download our “Broken Images Redirection” Plugin

#### 3.2

 * Bug fixes in function prefix

#### 3.1

 * New feature – Replace all broken images with a custom image

#### 2.3

 * Bug Fixes – Escaping URLs

#### 2.2

 * Bug Fixes – sanitizing part 2

#### 2.1

 * Bug fixes – sanitizing

#### 1.21

 * Bug fixes

#### 1.19

 * New GUI

#### 1.18

 * Bug fixes in the log report

#### 1.17

 * Bug fixes

#### 1.16

 * fix upgrade message issue in the plugins page

#### 1.15

 * PHP 7.2 compatibility

#### 1.14

 * add the ability to hide message

#### 1.13

 * PHP 7.x compatibility – Fix deprecated class issue

#### 1.12

 * bug in calculating the broken links count (this was affecting the error message)

#### 1.11

 * PHP 7.x compatibility

#### 1.10

 * Fix deprecated class issue

#### 1.9

 * Fix soft 404 url’s

#### 1.8

 * Fix for issue that may cause infinite redirect loop

#### 1.7

 * Support Handling all 404 error pages when using default permalink structure.

## Meta

 *  Version **5.6**
 *  Last updated **4 months ago**
 *  Active installations **200,000+**
 *  WordPress version ** 4.5 or higher **
 *  Tested up to **6.9.5**
 * Tags
 * [404 error](https://wordpress.org/plugins/tags/404-error/)[broken images](https://wordpress.org/plugins/tags/broken-images/)
   [redirection](https://wordpress.org/plugins/tags/redirection/)[seo redirect](https://wordpress.org/plugins/tags/seo-redirect/)
 *  [Advanced View](https://wordpress.org/plugins/all-404-redirect-to-homepage/advanced/)

## Ratings

 4.1 out of 5 stars.

 *  [  73 5-star reviews     ](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/?filter=2)
 *  [  19 1-star reviews     ](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/)

## Contributors

 *   [ wp-buy ](https://profiles.wordpress.org/wp-buy/)
 *   [ osama.esh ](https://profiles.wordpress.org/osamaesh/)
 *   [ Adam Salah ](https://profiles.wordpress.org/adam1318/)

## Support

Issues resolved in last two months:

     1 out of 1

 [View support forum](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/)