Forum Moderators: phranque
In other words the user is browsing http://subdomain.domain.com/index.php?do=something while the actual code that is being run is located in the www folder not the subdomain folder.
i have tried using the mod_rewrite and think that this moght be the ost efficient way to do this but i am not sure. any suggestions would be greatly appreciated.
[edited by: jdMorgan at 1:30 pm (utc) on April 18, 2006]
[edit reason] De-linked [/edit]
You can interally rewrite the requests, so that requests for subdomain reswources are served from your 'main' domain's filespace. However, this requires that all subdomain requests be pointed to your main domain's space, and is not supported by many 'control panels' -- You have to have a host that allows you to set this up manually. If it is supported, it's called something like a 'domain alias' or 'server alias' or similar.
Once you have all requests for all subdomains routed to your main domain's filespace, then this search [google.com] should get you going on mapping subdomain requests to subdirectories.
Jim