tony_d
Elite Member
- Jun 22, 2013
- 2,676
- 3,294
When you buy dropped domains, they often have incoming links to sub pages.
The conventional approach has been to do a 301 from those sub-pages to your home page/posts. That's effective - but time consuming.
Enter;
PBN building time saving hack
Edit the PHP code on the 404 error page, so that it does a 301 to your home page
That way, link juice flows to your home page without having to create an individual redirect for each and every page.
Step 1: In wordpress, go to Appearance > Editor
Step 2: Select the 404.php template
Step 3: Delete everything, and replace it with the code below
Sample code
NOTE: This is for WordPress, and it assumes that your WordPress template has a custom 404 page.
The conventional approach has been to do a 301 from those sub-pages to your home page/posts. That's effective - but time consuming.
Enter;
PBN building time saving hack
Edit the PHP code on the 404 error page, so that it does a 301 to your home page
That way, link juice flows to your home page without having to create an individual redirect for each and every page.
Step 1: In wordpress, go to Appearance > Editor
Step 2: Select the 404.php template
Step 3: Delete everything, and replace it with the code below
Sample code
PHP:
<?php // Permanent 301 Redirect via PHP
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.YOURSITE.com/");
exit();
?>
NOTE: This is for WordPress, and it assumes that your WordPress template has a custom 404 page.