Code:RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.mysite\.com RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
yest another question. I figured out taht one my my sites was with a penealty of dupe content as both www and non www versions were indexed so i decided to write the following code:-
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]
however it kind of works... it redirects it to http://www.mysite.com/public_html and I want to go just to http://www.mysite.com
any help will be great!!
Mansoor
My Affiliate Marketing Blog contact me via msn anaffiliate@hotmail.com
Code:RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.mysite\.com RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
The trouble with the rat race is that even if you win you're still a rat.
Time passes. Listen. Time passes. Dylan Thomas
Ebay Alerts to your inbox
aero_mansoor (04-01-10)
working great many thanks again!!
My Affiliate Marketing Blog contact me via msn anaffiliate@hotmail.com
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks