RewriteRule for handling multiple domains within one single app?
问题 Say I have an app at example.com. One customer migth have it's content in example.com/customer/hisname/ . Well, I would like to make possible that the customer assigns a domain for his content, say hisname.com , so this (hisdomain.com) renders example.com/customer/hisname/ . To do that I have created two virtual hosts, both having the root directory in the same place, and I have written a .htaccess file in order to filter the http_host and if not example.com then rewrite in such manner that