Redirect 404 To Homepage - Version 1.0.4

Version Description

  • minor code tweaks
Download this release

Release Info

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

Code changes from version 1.0.3 to 1.0.4

404-to-homepage.php CHANGED
@@ -3,7 +3,7 @@
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.3
7
  Author: LittleBizzy
8
  Author URI: https://www.littlebizzy.com
9
  License: GPL3
@@ -54,10 +54,10 @@ function ntfthp_wp() {
54
  /* Plugin suggestions */
55
 
56
  // Admin loader
57
- if (is_admin()) {//update_option('ntfhp_dismissed_on', '', true);
58
  $timestamp = (int) get_option('ntfhp_dismissed_on');
59
- if (empty($timestamp) || (time() - $timestamp) > (90 * 86400)) {
60
- require_once(NTFTHP_PATH.'/admin-suggestions.php');
61
  NTFTHP_Admin_Suggestions::instance();
62
  }
63
  }
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.4
7
  Author: LittleBizzy
8
  Author URI: https://www.littlebizzy.com
9
  License: GPL3
54
  /* Plugin suggestions */
55
 
56
  // Admin loader
57
+ if (is_admin()) {
58
  $timestamp = (int) get_option('ntfhp_dismissed_on');
59
+ if (empty($timestamp) || (time() - $timestamp) > (180 * 86400)) {
60
+ require_once(NTFTHP_PATH.'/admin-notices.php');
61
  NTFTHP_Admin_Suggestions::instance();
62
  }
63
  }
admin-suggestions.php → admin-notices.php RENAMED
File without changes
readme.txt CHANGED
@@ -1,18 +1,18 @@
1
  === Redirect 404 To Homepage ===
 
2
  Contributors: littlebizzy
3
- Tags: 404, not found, error, errors, missing, 301, redirect, redirection, page, homepage, home, htaccess
4
  Requires at least: 4.4
5
  Tested up to: 4.8
6
- Stable tag: 1.0.3
7
  License: GPL3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
10
  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.
11
 
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
  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.
18
 
@@ -20,14 +20,14 @@ It should be noted, however, that this method is not recommended for all website
20
 
21
  Unlike other 404 redirect plugins, 404 To Homepage "removes" any pre-existing HTTP headers, and executes ONLY a 301 redirect header pointed at the site's homepage. In other words, it does not allow any "previous" headers to be sent in order to avoid confusing browsers or Google bots. (NOTE: while any previous headers sent by WordPress/PHP engine are ignored, it's possible for your server i.e. Apache or Nginx to override things with header rules of their own... please check to ensure no conflicts.)
22
 
23
- #### Compatibility
24
 
25
  * __OS:__ Linux
26
  * __SERVER:__ Apache, Nginx
27
  * __PHP:__ 5.5+
28
  * __DATABASE:__ MySQL
29
 
30
- #### Plugin Features
31
 
32
  * __SETTINGS:__ None
33
  * __MUST-USE:__ Supported
@@ -58,15 +58,13 @@ Before to do the redirection to the homepage, there is a procedure that removes
58
 
59
  *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!*
60
 
61
-
62
  == Installation ==
63
 
64
  1. Upload the plugin files to `/wp-content/plugins/404-to-homepage-littlebizzy`
65
  2. Activate the plugin through the 'Plugins' screen in WordPress
66
  3. Test the plugin is working correctly by loading a non-existent URL of your website
67
 
68
-
69
- == Frequently Asked Questions ==
70
 
71
  = Does this plugin alter my 404.php template? =
72
 
@@ -80,9 +78,11 @@ This plugin does not have a settings page and is designed for speed and simplici
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.3 =
87
  * recommended plugins
88
 
@@ -94,4 +94,4 @@ Please avoid leaving negative reviews in order to get a feature implemented. Ins
94
  * updated plugin meta
95
 
96
  = 1.0 =
97
- * Initial release
1
  === Redirect 404 To Homepage ===
2
+
3
  Contributors: littlebizzy
4
+ Tags: 404, homepage, home, not found, errors, page, missing, 301, redirect, htaccess
5
  Requires at least: 4.4
6
  Tested up to: 4.8
7
+ Stable tag: 1.0.4
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
  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.
18
 
20
 
21
  Unlike other 404 redirect plugins, 404 To Homepage "removes" any pre-existing HTTP headers, and executes ONLY a 301 redirect header pointed at the site's homepage. In other words, it does not allow any "previous" headers to be sent in order to avoid confusing browsers or Google bots. (NOTE: while any previous headers sent by WordPress/PHP engine are ignored, it's possible for your server i.e. Apache or Nginx to override things with header rules of their own... please check to ensure no conflicts.)
22
 
23
+ ## Compatibility
24
 
25
  * __OS:__ Linux
26
  * __SERVER:__ Apache, Nginx
27
  * __PHP:__ 5.5+
28
  * __DATABASE:__ MySQL
29
 
30
+ ### Plugin Features
31
 
32
  * __SETTINGS:__ None
33
  * __MUST-USE:__ Supported
58
 
59
  *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!*
60
 
 
61
  == Installation ==
62
 
63
  1. Upload the plugin files to `/wp-content/plugins/404-to-homepage-littlebizzy`
64
  2. Activate the plugin through the 'Plugins' screen in WordPress
65
  3. Test the plugin is working correctly by loading a non-existent URL of your website
66
 
67
+ == FAQ ==
 
68
 
69
  = Does this plugin alter my 404.php template? =
70
 
78
 
79
  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.
80
 
 
81
  == Changelog ==
82
 
83
+ = 1.0.4 =
84
+ * minor code tweaks
85
+
86
  = 1.0.3 =
87
  * recommended plugins
88
 
94
  * updated plugin meta
95
 
96
  = 1.0 =
97
+ * initial release