Link Juice Keeper - Version 1.0

Version Description

Download this release

Release Info

Developer sirzooro
Plugin Icon 128x128 Link Juice Keeper
Version 1.0
Comparing to
See all releases

Version 1.0

Files changed (3) hide show
  1. link-juice-keeper.php +59 -0
  2. readme.html +38 -0
  3. readme.txt +33 -0
link-juice-keeper.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Link Juice Keeper
4
+ Plugin URI: http://www.poradnik-webmastera.com/projekty/link_juice_keeper/
5
+ Description: This plugin helps you to keep the link juice by redirecting all non-existing URLs which normally return a 404 error to the front blog page using 301 redirect.
6
+ Author: Daniel Frużyński
7
+ Version: 1.0
8
+ Author URI: http://www.poradnik-webmastera.com/
9
+ */
10
+
11
+ /* Copyright 2009 Daniel Frużyński (email : daniel [A-T] poradnik-webmastera.com)
12
+
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License as published by
15
+ the Free Software Foundation; either version 2 of the License, or
16
+ (at your option) any later version.
17
+
18
+ This program is distributed in the hope that it will be useful,
19
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ GNU General Public License for more details.
22
+
23
+ You should have received a copy of the GNU General Public License
24
+ along with this program; if not, write to the Free Software
25
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
+ */
27
+
28
+
29
+ if ( !class_exists( 'LinkJuiceKeeper' ) ) {
30
+ class LinkJuiceKeeper {
31
+ // Constructor
32
+ function LinkJuiceKeeper() {
33
+
34
+ //add_action( 'init', array( &$this, 'init' ) );
35
+
36
+ add_filter( 'status_header', array( &$this, 'status_header' ), 10, 2 );
37
+ }
38
+
39
+ /*// Initialize plugin
40
+ function init() {
41
+ if ( function_exists( 'load_plugin_textdomain' ) ) {
42
+ load_plugin_textdomain( 'link-juice-keeper', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)) );
43
+ }
44
+ }*/
45
+
46
+ function status_header( $status_header, $header ) {
47
+ if ( $header == 404 ) {
48
+ wp_redirect( get_bloginfo( 'url' ) , 301 );
49
+ exit();
50
+ } else {
51
+ return $status_header;
52
+ }
53
+ }
54
+ }
55
+
56
+ $wp_link_juice_keeper = new LinkJuiceKeeper();
57
+ }
58
+
59
+ ?>
readme.html ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5
+ <title>Link Juice Keeper 1.0 Readme</title>
6
+ </head>
7
+ <body>
8
+ <h1>Link Juice Keeper 1.0 Readme</h1>
9
+ <p>This plugin helps you to keep the link juice by redirecting all non-existing URLs which normally return a 404 error to the blog front page using 301 redirect.</p>
10
+ <p><b>Plugin Homepage:</b> <a href="http://www.poradnik-webmastera.com/projekty/link_juice_keeper/">Link Juice Keeper</a></p>
11
+ <p><b>Plugin Homepage on WordPress.org:</b> <a href="http://wordpress.org/extend/plugins/link-juice-keeper/">Link Juice Keeper</a></p>
12
+ <p><b>Author Homepage:</b> <a href="http://www.poradnik-webmastera.com/">Poradnik Webmastera</a></p>
13
+ <p><b>Author:</b> Daniel Frużyński</p>
14
+
15
+ <h2>Description</h2>
16
+ <p>As you probably know, incoming links play important role in ranking well in Google and other search engines. Therefore you should assure that every incoming link leads to one of pages on your blog. This may be a challenge, because World Wide Web is dynamic and changes every day:</p>
17
+ <ul>
18
+ <li>you can remove some posts or pages on your blog;</li>
19
+ <li>you can change URL scheme on whole blog;</li>
20
+ <li>incoming links may became broken (e.g. due to some automatic text formatting);</li>
21
+ <li>someone may simply put wrong (broken) link somewhere.</li>
22
+ </ul>
23
+ <p>All of the above leads to link juice waste. You can avoid this by using this plugin. It redirects all non-existing URLs which normally return a 404 error to the blog front page using 301 (permanent) redirect. This way everyone who comes to your blog via broken link (both people and robots) will be redirected to the front page.</p>
24
+
25
+ <h2>Installation</h2>
26
+ <ol>
27
+ <li>Upload <code>link-juice-keeper</code> directory to the <code>/wp-content/plugins/</code> directory</li>
28
+ <li>Activate the plugin through the 'Plugins' menu in WordPress</li>
29
+ <li>Configure and enjoy :)</li>
30
+ </ol>
31
+
32
+ <h2>Changelog</h2>
33
+ <p>1.0</p>
34
+ <ul>
35
+ <li>Initial version
36
+ </ul>
37
+ </body>
38
+ </html>
readme.txt ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: sirzooro
3
+ Tags: google, link, links, redirect, seo
4
+ Requires at least: 2.2
5
+ Tested up to: 2.7.1
6
+ Stable tag: 1.0
7
+
8
+ This plugin helps you to keep the link juice by redirecting all non-existing URLs (they return error 404) to the blog front page using 301 redirect.
9
+
10
+ == Description ==
11
+
12
+ As you probably know, incoming links play important role in ranking well in Google and other search engines. Therefore you should assure that every incoming link leads to one of pages on your blog. This may be a challenge, because World Wide Web is dynamic and changes every day:
13
+
14
+ * you can remove some posts or pages on your blog;
15
+ * you can change URL scheme on whole blog;
16
+ * incoming links may became broken (e.g. due to some automatic text formatting);
17
+ * someone may simply put wrong (broken) link somewhere.
18
+
19
+ All of the above leads to link juice waste. You can avoid this by using this plugin. It redirects all non-existing URLs which normally return a 404 error to the blog front page using 301 (permanent) redirect. This way everyone who comes to your blog via broken link (both people and robots) will be redirected to the front page.
20
+
21
+ [Changelog](http://wordpress.org/extend/plugins/wypiekacz/other_notes/)
22
+
23
+ == Installation ==
24
+
25
+ 1. Upload `link-juice-keeper` directory to the `/wp-content/plugins/` directory
26
+ 1. Activate the plugin through the 'Plugins' menu in WordPress
27
+ 1. Configure and enjoy :)
28
+
29
+ == Changelog ==
30
+
31
+ 1.0
32
+
33
+ * Initial version