URL Rewrite module of IIS and multitenancy?

Topics: Administration, Core, Customizing Orchard, General, Writing modules, Writing themes
Apr 26, 2014 at 11:02 AM
I have several tenants and some of them must work with multi domain. How can use rule of IIS URL Rewrite for my tenants to force 'www' prefix and also for redirecting additional domains to main domain for every tenant. The problem is we have no web.config for every tenant separately and any tenant has its own domain names.
I know there is "Rewrite Rules module" in gallery but i am unfamiliar with Apache .htaccess file format. Also i am worry about performance issues for using this module for every tenants.
What is best and correct way?
Please be aware that i have full access to IIS console.
Apr 26, 2014 at 5:19 PM
You can just normally use IIS Url Rewrite rules for this, it has little to do with multi-tenancy. This way of course you'll have all of your sites' rules in the same Web.config, but if that doesn't bother you then it's the way to go.
Apr 30, 2014 at 9:15 AM
Can you get me the rule that i must place in web.config?