Hello, thanks for that, I didn't really understand it but this is what
I've ended up with:
RewriteRule !\.(js|ico|gif|jpg|png|css|php)$ subdomain/index.php
RewriteCond %{HTTP_HOST} !sub.domain.com$
RewriteRule !\.(js|ico|gif|jpg|png|css|php)$ index.php
This seems to work fine, can you tell me if there is a better way of
doing it?
Regards,
Tony.
Michał Minicki wrote:
> Tony Harrison <[EMAIL PROTECTED]> napisał(a):
>
>
>> Hello, I currently use the .htaccess file from the manual, but I want to
>> modify it so that when someone accesses using a subdomain it goes to a
>> different bootstrap file.
>>
>> at the moment a request for domain.com and sub.domain.com both goto the
>> same bootstrap file. i want it to rewite like this:
>>
>> domain.com - index.php
>> sub.domain.com - subdomain/index.php
>>
>> What do I put in the .htaccess file to achieve this?
>>
>
> Here's your solution. Second example (Canonical Hostnames) is almost
> exactly the thing you need:
>
> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html#url
>
>
>> Tony.
>>
>
>
>
>