Handy PageRank Tip
By Jamsi • Jan 21st, 2006 • Category: SEODid you know that Google ranks http://www.site.com differently to http://site.com? Anoying huh. People could be linking to your site using either link which could screw up your chances of a good PageRank.
If you’re using Apache, you can throw the below code in your website’s .htaccess file and have everything from www.site.com redirected to http://site.com - therefore eliminating any confusion and two pageranks.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^jigsawboys.com$ [NC]
RewriteRule (.*) http://jigsawboys.com/$1 [R=301,L]
Props to Scrivs from Workboxers for providing the code.
No related posts.
FREE NEWSLETTER -> Want Tech Tips Sent Straight to your Inbox?
Grab our Newsletter to Ensure your PC is Running Smooth!
Jamsi is currently studying a full time Bachelor of Computer/Business degree and working part time as an Internet Security Consultant.
Email this author | All posts by Jamsi
























Not being a big fan of rewrite rules, I prefer putting this in your virtualhost section:
Takes load off the server too, as rewrite rules take more processing power.
I would use your method though if I didn’t have access to the apache conf.