In article <003d01c22e58$dcb45240$6601a8c0@yourwrjlo8t8dt>, [EMAIL PROTECTED] (Adrian Murphy) wrote:
> the following code redirects www.usersite.mysite.biz to > www.mysite.biz/users/sites/usersite > > the problem is when the 'www' is left out it doesn't work. <snip> > RewriteEngine on > RewriteCond %{HTTP HOST} ^www\.[^.]+\.mysite\.biz$ > RewriteRule ^(.+) %{HTTP HOST}$1 [C] > RewriteRule ^www\.([^.]+)\.mysite\.biz(.*) > http://www.mysite.biz/users/sites/$1 > RewriteCond %{HTTP HOST} ^www\.[^.]+\.mysite\.ie$ > RewriteRule ^(.+) %{HTTP HOST}$1 [C] > RewriteRule ^www\.([^.]+)\.mysite\.ie(.*) > http://www.mysite.biz/users/sites/$1 Change each of those instances of "^www\." to "^(www\.)?" -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php