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 :)

check these tutorials explain all.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -