本文介绍了子网域路由ASP.NET 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像子域一样进行网址路由.

例如,我的网站是website.com,所以现在我想像
一样进行网址重写
client1.website.com,
client2.website.com,
client3.website.com,
clientN.website.com

在我的网站上,每当单击客户端我的URL时都会有客户端列表,例如

website.com/client.aspx?client=client1
website.com/client.aspx?client=client2
website.com/client.aspx?client=client3
website.com/client.aspx?client=clientN

现在我想像这样
进行URL重写
client1.website.com
client2.website.com
client3.website.com
clientN.website.com

同样,每当客户注册后,该客户就可以直接打开site

I wants to url routing like as subdomain.

For example my website is website.com so that now i wants to url rewriting like

client1.website.com,
client2.website.com,
client3.website.com,
clientN.website.com

In my website there are list of client whenever click on client my url like this

website.com/client.aspx?client=client1
website.com/client.aspx?client=client2
website.com/client.aspx?client=client3
website.com/client.aspx?client=clientN

Now i wants to url rewriting like as

client1.website.com
client2.website.com
client3.website.com
clientN.website.com

Also whenever once client is registered,After that client can directly open site

推荐答案


这篇关于子网域路由ASP.NET 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-20 20:49