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. -- Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] | http://aie.pl/martel.asc =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Idleness is not doing nothing. Idleness is being free to do anything." -- Floyd Dell
