开发者

Html helper to route back from a subdomain

开发者 https://www.devze.com 2023-03-29 02:24 出处:网络
I have created an mvc3 application that allows my customers to have there own subdomain page with the application e.g. www.subdomain.mydomain.com

I have created an mvc3 application that allows my customers to have there own subdomain page with the application e.g. www.subdomain.mydomain.com

The problem I am now facing is the main menu and footer that is contained within my _Layout meaning if a user browses to the subdomain my links are been rendered as www.subdomain.mydomain.com/about - www.subdomain.mydomain.com/contactus etc etc.

I assume I need to create a helper to enable m开发者_开发技巧apping the links back away from the subdomain but I dont have a clue where to start.....can anyone point me in the right direction?

Thank you


I would suggest creating a _SubdomainLayout page, and set the links on that page to the URL you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号