php - Wildcard Subdomain Exceptions -
i have wildcard subdomain enabled , dynamically parse url passing as-is index.php
(ex. somecity.domain.com
).
now, wish create few subdomains static can install different application , not co-mingle current 1 (ex. blog.domain.com
).
my .htaccess
reads:
rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l]
can manipulate .htaccess
achieve need? can done through apache?
your .htaccess nothing useful, apache configured directoryindex index.php. well, move domain.com/a domain.com/index.php, doubt want.
your wildcard virtualhost works because have serveralias *.domain.com in configuration, or single virtualhost , dns pointing address of server. (when have single virtualhost, shows request, , first listed virtualhost default one)
you have create new virtualhosts static domains, leaving default 1 as, well, default 1 :)
Comments
Post a Comment