Redirect 404 To Homepage - Version 1.0.2

Version Description

  • tweaked plugin meta
  • tested with WP 4.8
Download this release

Release Info

Developer littlebizzy
Plugin Icon 128x128 Redirect 404 To Homepage
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

Files changed (2) hide show
  1. 404-to-homepage.php +3 -18
  2. readme.txt +21 -16
404-to-homepage.php CHANGED
@@ -3,26 +3,11 @@
3
  Plugin Name: 404 To Homepage
4
  Plugin URI: https://www.littlebizzy.com/plugins/404-to-homepage
5
  Description: Redirects all 404 (Not Found) errors to the homepage for a better user experience, less abuse from bots, and 100% elimination of Google GSC warnings.
6
- Version: 1.0.1
7
  Author: LittleBizzy
8
  Author URI: https://www.littlebizzy.com
9
-
10
- This program is free software; you can redistribute it and/or modify
11
- it under the terms of the GNU General Public License as published by
12
- the Free Software Foundation; either version 2 of the License, or
13
- (at your option) any later version.
14
-
15
- This program is distributed in the hope that it will be useful,
16
- but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- GNU General Public License for more details.
19
-
20
- You should have received a copy of the GNU General Public License
21
- along with this program; if not, write to the Free Software
22
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
-
24
- Copyright 2016 by LittleBizzy
25
-
26
  */
27
 
28
 
3
  Plugin Name: 404 To Homepage
4
  Plugin URI: https://www.littlebizzy.com/plugins/404-to-homepage
5
  Description: Redirects all 404 (Not Found) errors to the homepage for a better user experience, less abuse from bots, and 100% elimination of Google GSC warnings.
6
+ Version: 1.0.2
7
  Author: LittleBizzy
8
  Author URI: https://www.littlebizzy.com
9
+ License: GPL3
10
+ License URI: http://www.gnu.org/licenses/gpl-3.0.html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  */
12
 
13
 
readme.txt CHANGED
@@ -1,17 +1,21 @@
1
- === 404 To Homepage ===
2
  Contributors: littlebizzy
3
  Donate link:
4
- Tags: 404, not found, error, errors, missing, 301, redirect, redirection, page, homepage
5
  Requires at least: 4.4
6
- Tested up to: 4.7
7
- Stable tag: 1.0.1
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Redirects all 404 (Not Found) errors to the homepage for a better user experience, less abuse from bots, and 100% elimination of Google GSC warnings.
12
 
13
  == Description ==
14
 
 
 
 
 
15
  404 To Homepage is a simple WordPress plugin for redirecting all 404 "Not Found" errors to the homepage. The reason for doing this is to avoid user confusion (or lost leads), and to avoid abuse causes by bots that ping your site with non-existent URLs which can negatively effect search engine indexing. Additionally, it can totally eliminate the warnings created in Google GSC (Webmasters) in regard to 404 errors that begin piling up over time, which quite often are not even the fault of your website.
16
 
17
  It should be noted, however, that this method is not recommended for all websites. For example, large blogs or magazines that rely heavily on search engine traffic (such as a newspaper) should probably not use this plugin. This is because in many cases, 404 errors should be analyzed on a regular basis and then 301 redirected to the appropriate page. Rather, this plugin is best suited for small businesses or websites with a limited amount of content, and limited staff, who are not publishing massive amounts of content. In such cases, we suggest monitoring 404 errors for perhaps a few months, redirecting the ones that are legitimate, and then consider activating this plugin after that point.
@@ -50,6 +54,12 @@ __Code inspired by:__
50
 
51
  NOTE: We released this plugin in response to our managed hosting clients asking for better access to their server environment, and our primary goal will likely remain supporting that purpose. Although we are 100% open to fielding requests from the WordPress community, we kindly ask that you consider all of the above mentioned goals before leaving reviews of this plugin, thanks!
52
 
 
 
 
 
 
 
53
  == Installation ==
54
 
55
  1. Upload the plugin files to `/wp-content/plugins/404-to-homepage-littlebizzy`
@@ -70,20 +80,15 @@ This plugin does not have a settings page and is designed for speed and simplici
70
 
71
  Please avoid leaving negative reviews in order to get a feature implemented. Instead, we kindly ask that you post your feedback on the wordpress.org support forums by tagging this plugin in your post. If needed, you may also contact our homepage.
72
 
73
- == Screenshots ==
74
 
75
  == Changelog ==
76
 
 
 
 
 
77
  = 1.0.1 =
78
  * fixed plugin meta data (description, etc)
79
 
80
  = 1.0 =
81
- * Initial release based on research of other plugins but using better code
82
-
83
- == Other Notes ==
84
-
85
- Some details about the plugin implementation:
86
-
87
- This is a version that uses the early WP hook 'pre_handle_404' to avoid unnecessary code execution (posts types creation and taxonomies). But this hook is available only from WP 4.5.0, so the plugin declares also the 'wp' standard hook just in case for older versions.
88
-
89
- Before to do the redirection to the homepage, there is a procedure that removes any existing previous header, so only 301 header will be sent in response to the HTTP request. You can see the headers in chrome from Network tab and checking preserve log. For Firefox you can use the Live HTTP headers addon, for example.
1
+ === Redirect 404 To Homepage ===
2
  Contributors: littlebizzy
3
  Donate link:
4
+ Tags: 404, not found, error, errors, missing, 301, redirect, redirection, page, homepage, home, htaccess
5
  Requires at least: 4.4
6
+ Tested up to: 4.8
7
+ Stable tag: 1.0.2
8
+ License: GPL3
9
+ License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
  Redirects all 404 (Not Found) errors to the homepage for a better user experience, less abuse from bots, and 100% elimination of Google GSC warnings.
12
 
13
  == Description ==
14
 
15
+ *Redirects all 404 (Not Found) errors to the homepage for a better user experience, less abuse from bots, and 100% elimination of Google GSC warnings.*
16
+
17
+ ---
18
+
19
  404 To Homepage is a simple WordPress plugin for redirecting all 404 "Not Found" errors to the homepage. The reason for doing this is to avoid user confusion (or lost leads), and to avoid abuse causes by bots that ping your site with non-existent URLs which can negatively effect search engine indexing. Additionally, it can totally eliminate the warnings created in Google GSC (Webmasters) in regard to 404 errors that begin piling up over time, which quite often are not even the fault of your website.
20
 
21
  It should be noted, however, that this method is not recommended for all websites. For example, large blogs or magazines that rely heavily on search engine traffic (such as a newspaper) should probably not use this plugin. This is because in many cases, 404 errors should be analyzed on a regular basis and then 301 redirected to the appropriate page. Rather, this plugin is best suited for small businesses or websites with a limited amount of content, and limited staff, who are not publishing massive amounts of content. In such cases, we suggest monitoring 404 errors for perhaps a few months, redirecting the ones that are legitimate, and then consider activating this plugin after that point.
54
 
55
  NOTE: We released this plugin in response to our managed hosting clients asking for better access to their server environment, and our primary goal will likely remain supporting that purpose. Although we are 100% open to fielding requests from the WordPress community, we kindly ask that you consider all of the above mentioned goals before leaving reviews of this plugin, thanks!
56
 
57
+ Some details about the plugin implementation:
58
+
59
+ This is a version that uses the early WP hook 'pre_handle_404' to avoid unnecessary code execution (posts types creation and taxonomies). But this hook is available only from WP 4.5.0, so the plugin declares also the 'wp' standard hook just in case for older versions.
60
+
61
+ Before to do the redirection to the homepage, there is a procedure that removes any existing previous header, so only 301 header will be sent in response to the HTTP request. You can see the headers in chrome from Network tab and checking preserve log. For Firefox you can use the Live HTTP headers addon, for example.
62
+
63
  == Installation ==
64
 
65
  1. Upload the plugin files to `/wp-content/plugins/404-to-homepage-littlebizzy`
80
 
81
  Please avoid leaving negative reviews in order to get a feature implemented. Instead, we kindly ask that you post your feedback on the wordpress.org support forums by tagging this plugin in your post. If needed, you may also contact our homepage.
82
 
 
83
 
84
  == Changelog ==
85
 
86
+ = 1.0.2 =
87
+ * tweaked plugin meta
88
+ * tested with WP 4.8
89
+
90
  = 1.0.1 =
91
  * fixed plugin meta data (description, etc)
92
 
93
  = 1.0 =
94
+ * Initial release based on research of other plugins but using better code