Mod_rewrite to dynamically map subdomain directories.


/ Published in: Apache
Save to your folder(s)

Add to vhost block. Dynamically maps all subdomains of sub.example.com to their respective document root. Note: Doesn't work great when the sub sub needs to add additional mod_rewrite rules of its own, i.e., a Drupal installation.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.