Redirecting WordPress index.php to root
Posted on April 20, 2008
If you check the Page Rank of http://bloke.org against http://bloke.org/index.php, which are both, to a human, obviously the same page you'll see two different results. My domain carries a PR3 whilst the latter carries a PR0.
We know they are both the same, but do the crawlers? No, they don't.
Without rambling about Google Page Rank and other such randomly generated statistics, your site or blog may be displaying what the search engine crawlers think is duplicate content.
Luckily, there is a clever fix. Modify the following code and drop it in your .htaccess file for no-duplicate-content-for-the-crawlers-niceness.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/
RewriteRule ^index.php$ http://bloke.org/ [R=301,L]
Simple as simple gets.
Related posts
- Custom Post Type Index/Archives
Custom Post Types have come a long way recently. Custom Post Type index/archives have been... - CubeCart and WordPress Integration
Following my 100% CubeCart orientated posts, here's another late night hack. It integrates a WordPress... - Page Rank Updates
Looks like Google have updated their Page Rank recently. My index page has increased from... - Composers
Composers.net - an i9000 Networks project that hosts a fantastic selection of community submitted content... - Unique home page mod CubeCart 4
Here's a quick modification to allow you to have a unique home page. A page...


