简体   繁体   中英

Client Specific Dynamic Urls with asp.net mvc

I'm building an app and within the app clients will be allowed to have many specific urls for themselves that they can add to their own sub domain.

So for instance they'll have a subdomain and have a monthly competition.

subdomain.client1.com/myJuneComp/

subdomain.client1.com/myJuneComp/thankyou

subdomain.client1.com/myJulyComp/

subdomain.client1.com/myJulyComp/thankyou

subdomain.client1.com/randomComp

subdomain.client1.com/randomComp/thankyou

I'm wondering what the best way to implement this in asp.net mvc would be. It will also be mixed with the application administration.

在您的客户端操作中添加一个参数(例如, string clientName ),然后将{clientName}/添加到每个相关路由URL的开头。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM