Joe Rineharts FAQs301 redirect for www and the trailing slash SEO tip

301 redirect for www and the trailing slash SEO tip

Attention: open in a new window. PDFPrintE-mail



Search Engines see yoursite.com and www.yoursite.com as two different site and to further confuse the issue if you are using the trailing / it can look to the engines that you have 4 different sites with the combination if backlinks pointing to the various options. The has the effect of dilluting the value of the links to your site.

The solution is to use an .htaccess file with this code:

Options +Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST}^yoursite\.com
RewriteRule ^(.*)$ http://www.JoeRinehart.com/$1 [R=permanent,L]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.JoeRinehart.com/$1/ [L,R=301]

 



Add this page to your favorite Social Bookmarking websites
Del.icio.us! Google! Live! Facebook! Technorati! StumbleUpon! MySpace! AddThis Social Bookmark Button Twitter! LinkedIn! TwitThis Joomla Free PHP
Banner

Sponsored Links

Go to top

Live e-commerce SEO consulting help


  • Facebook: joerinehart
  • Facebook Page: 19462955069
  • Linked In: joerinehart
  • Twitter: joe_rinehart
  • YouTube: joesrinehart

Login to JoeRinehart.com

Registered members to my site can do and see more!

My Store


List All Products
Download Area
Show Cart
Your Cart is currently empty.

Sponsored Links