Monday, June 15, 2009

Apache Redirect 301

# Redirect all pages to home page

This is for all redirects to 301

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.solutions.com$
RewriteRule ^(.*)$ http://www.solutions.com/$1 [R=301]

#####################################
#Ford.com This is for all redirects to 301. From www to nowww

1)redirect all traffic from http://www.ford.com to http://ford.com

RewriteEngine on
RewriteCond %{HTTP_HOST} !^ford.com$
RewriteRule ^(.*)$ http://ford.com/$1 [R=301]



2) redirect all traffic from http://ford.com to http://www.ford.com

from non www to www

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.ford\.com
RewriteRule (.*) http://www.ford.com/$1 [R=301,L]

1 comment:

Anonymous said...

hello... hapi blogging... have a nice day! just visiting here....

LinkWithin

Related Posts Plugin for WordPress, Blogger...

SEO Secrets: SEO Books, Twitter Tips, Social Secret Books!

FREELANCER PROJECTS ONLINE- GET New Projects

Buy SEO Ebooks - Learn SEO Instantly with TOP SEO Experts!!

Latest SEO News! SEO Google Yahoo News - Latest SEO Updates, Videos