URL Redirect based on client logged in

寵の児 提交于 2019-12-24 15:00:24

问题


How do I redirect url based on register client in c# .net or asp.net 4.0. For example if client registers as "client1" and our website is www.mycompany.com for every page client proceeds should get www.client1.mycompany.com.

More detailed example:

For example another client created is Client2. The pages i have created in general is like "www.mycompany.com/product.aspx" "www.mycompany.com/categories.aspx" should be shown as "www.client2.mycompany.com/product.aspx" and www.client2.mycompany.com/categories.aspx" respectively

I have searched on web and found for static pages or using Gloabal.asax during startup of application but haven't found any thing after user logged in.

来源:https://stackoverflow.com/questions/14324897/url-redirect-based-on-client-logged-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!