I know this can be done in http.conf but is it possible to use .htaccess & Mod_rewrite to map domain names to a directory so that you can run multiple independant sites from the same hosting account?
Is the following code along the right lines?
- Code: Select all
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule (.*) /sites/example.com/public_html/$1 [L]