[UPHPU] wildcard DNS & web roots

Fred Larsen fredish at gmail.com
Fri Apr 25 16:29:08 MDT 2008


On Apr 25, 2008, at 4:15 PM , Wade Preston Shearer wrote:

>> RewriteEngine on
>> RewriteCond     %{HTTP_HOST}                             [^.]+\.[^.] 
>> +\.dev.example\.com:[^.]+$
>> RewriteRule     ^(.+)                                   %{HTTP_HOST} 
>> $1                  [C]
>> RewriteRule     ([^.]+)\.([^.]+)\.example\.com(.*)       /home/$2/ 
>> sites/$1/htdocs$3
>
> Shouldn't that last line be:
>
> RewriteRule     ([^.]+)\.([^.]+)\.dev.example\.com(.*)       /home/ 
> $2/sites/$1/htdocs$3

Yes, yes it should.

Fred


More information about the UPHPU mailing list