问题
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