Hi,
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.
could someone help me to fix this?
many thanks




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


adrian.

Reply via email to