Let Me Advise

Make Money Online With Passion

February 17, 2008

Make Sure All Your Pages Get Indexed!

A good friend of mine and business partner Aribo wrote this interesting article for LetMeAdvise. Feel free to visit his site here.

Make Sure All Your Pages Get Indexed

Most of you probably don’t know, but Google has become very lazy recently. They can’t keep up with the speed at which the internet is growing at. So, in order to make up for this, they’ve decided to no longer index the .php files with extensions.

Example:

index.php?page=home - Would Not Be Indexed.
index.php?page=about - Would Not Be Indexed.
index.php?page=faq - Would Not Be Indexed.

Only the index.php page would be indexed.

This was a huge problem for my website, YouTubeLoader. All my URL’s looked like this:

http://youtubeloader.com/link.php?link=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUcufSfSvgRk

So only my link.php and index.php pages were being indexed. I needed to solve this and so, i came up with this clever method.

Step 1: Create a .htaccess (write in notepad and save as .htaccess) file with the following code inside:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /redirect.php [L]
</IfModule>

Upload this .htaccess file to your root directory. This code will re-direct all “404″ pages (pages which can not be found) and show the contents from redirect.php

Step 2: Create a file named redirect.php (once again, can be done in notepad) containing the following code:

<?php
$path = $_SERVER['REQUEST_URI'];
if(strpos($path,”/home.html”) == 0){
echo file_get_contents(”http://yourlink.com/index.php?page=home);
}else{
header(”HTTP/1.0 404 Not Found”);
echo file_get_contents(’404.html’);
}
?>

This will mean that if a visitor goes to home.html, they will see the content from index.php?page=home

I did the same for my website. I use links like this:

http://www.youtubeloader.com/youtube/UcufSfSvgRk/YouTube_-_Download_ANY_YouTube_Video.html

To show the content of:

http://youtubeloader.com/link.php?link=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DUcufSfSvgRk

I strongly recommend you do this if you own a similar site. It will drastically increase your rankings! I changed my website about 3 days ago and I have already had 14,000 pages of my site crawled by Google and get about 20 new pages indexed every day. At the moment I have about 70 indexed pages. Before the change, I only had about 3. So, it’s definitely worth it!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • co.mments Make Sure All Your Pages Get Indexed!
  • De.lirio.us
  • Facebook
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Looks like you're new here. If you like what you see, feel free to subscribe to my RSS feed. Thanks for visiting!

2 comments for this post.

  1. Comment from Al on February 17th, 2008 :

    Good work. It is always better to have plain English links for Google. It has been show time-and-time again that they index better. However, it is not technically true that extensions after the PHP (or ASP or CFM) don’t index. They do. Google is able to read them. I think they are called dirty links, and they don’t perform as well. So overall, good advice here. Make human-readable links where ever possible for better SERP.

  2. Comment from Benjamin Owens on March 12th, 2008 :

    This is a horrible idea. Consider what you are doing: you take one request, redirect it to a file, then from that file you open a connection TO YOURSELF and after loading THAT into memory, sending it along. You’re wasting bandwidth, processor cycles, and a LOT of memory doing this.

    Try this instead:

    RewriteRule ^/(.+).html /index.php?page=$1 [L]

    You’ll free up a ton of RAM and it’s easier to manage–less strain on your logs as your own webserver wastes time connecting to itself.

Leave a Comment