- Code: Select all
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]
works great! thanks
Moderator: Moderators
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} ^example\.co.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301]RewriteCond %{HTTP_HOST} ^example\.org.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301]RewriteCond %{HTTP_HOST} ^www.example\.org.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} !^www.example\.co\.uk$ [NC]
RewriteRule ^(.*) http://www.example.co.uk/$1 [QSA,L,R=301]


RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]RewriteCond %{HTTP_HOST} !^www.example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]
dcz wrote:What do you want to do ?
Redirect many domains to one or redirect the www prefix for several domains on the same host ?
++
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteRule ^players.php/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/$ /players.php?$1=$2&$3=$4&$5=$6&$7=$8 [L]
RewriteRule ^players.php/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/$ /players.php?$1=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L]
RewriteRule ^historical_fantasy_pts/year/([^.]+)/position/([^.]+)$ historical_fantasy_pts.php?year=$1&position=$2 [L]
RewriteRule ^historical_fantasy_pts/year/([^.]+)/position/([^.]+)week/([^.]+)/$ historical_fantasy_pts.php?year=$1&position=$2&week=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
Options +FollowSymlinks -MultiViews
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,L,R=301]falkra wrote:Hello, it may sound stupid, but if you really added the code you quoted with no modification, it cannot work, you have to replace "example" by "hvacruniverse".![]()
Sorry if you already did.
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bigskyfans\.com$ [NC]
RewriteRule ^(.*) http://www.bigskyfans.com/$1 [QSA,L,R=301]
Users browsing this forum: No registered users and 2 guests