I would like to display my customer name in the domain like
http://storeName1.myDomain.com/...
http://storeName2.myDomain.com/...
I have tried to add DomainRoute such as the pure MVC but it is not working in umbraco
/****For Pure MVC***/
routes.Add("DomainRoute", new DomainRoute(
"{storeName}.example.com", // Domain with parameters
"{controller}/{action}/{id}", // URL with parameters
new { language = "en", controller = "Home", action = "Index", id = "" } // Parameter defaults
));
How to add the {storeName} parameter to the domain as a prefix?
Site setup:
- One Umbraco websites
- Each store is a database record; not a single website
Make sure you binding are set correctly in IIS. Then right click the homenode and under Culture & Hostnames add the subdomain for the corresponding site.
How to add DomainRoute
Hi,
I would like to display my customer name in the domain like
I have tried to add DomainRoute such as the pure MVC but it is not working in umbraco
How to add the {storeName} parameter to the domain as a prefix?
Site setup: - One Umbraco websites - Each store is a database record; not a single website
Make sure you binding are set correctly in IIS. Then right click the homenode and under Culture & Hostnames add the subdomain for the corresponding site.
Thank you very much John for the quick answer.
but this will not work for my case, the storeName is a dynamic parameter taken form database that contains an increasing number of stores records.
is working on a reply...