[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] *.domain.com
- Subject: Re: [cobalt-developers] *.domain.com
- From: Balázs Nagy <bn@xxxxxxxxxxxxxx>
- Date: Mon May 8 17:12:25 2000
Thescripter@xxxxxxx wrote:
> 1. RewriteEngine on
> 2. RewriteCond %{HTTP_HOST} ^[^.]+\.domain\.com$
> 3. RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
> 4. RewriteRule ^www\.domain\.com/(.*) /home/sites/site1/web/$1
> 5. RewriteRule ^([^.]+)\.domain\.com/(.*) /home/sites/site1/$1/$2
I see two thing to try:
- exchange line 4 and 5 so that 5 comes before 4
- if that doesn't do it, lookup in a regex book how to change line 5's regex
"^([^.]+)" so that it does not match for "www" (I forgot how to do it...)