This project is read-only.

Using Host/Sub-domain For Routing

Topics: Core, Customizing Orchard, General, Writing modules
Oct 23, 2015 at 5:20 PM
What would be the recommended way to have an Orchard module under a domain and another Orchard module under a subdomain of that domain and be able to access different content depending on the domain? Is it possible to make AutoRoute to consider the host of the path?

For example: -> page A (it should go to page A because A is under the first module) -> Page B (it should go to page B because B is under the second module)

We also want to be able to use the same content, widgets, layer rules, etc. on both hosts.