url路由就像asp.Net web Forms中的子域一样c# [英] url routing like as subdomain in asp.Net web Forms c#

查看:75
本文介绍了url路由就像asp.Net web Forms中的子域一样c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望网址像子网一样路由。



例如我的网站是abc.com所以现在我想要网址重写像



user1.abc.com,

user2.abc.com,

user3.abc。 com,

用户(N).abc.com



一旦用户注册,

之后用户可以直接打开以下网站: www.deviantart.com

用户个人资料链接是: abdussalam143.deviantart.com



我不知道怎么做,



先谢谢

I want url routing like as sub domain.

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

user1.abc.com,
user2.abc.com,
user3.abc.com,
user(N).abc.com

Also when ever once user is registered,
After that user can directly open site like: www.deviantart.com
user profile link is : abdussalam143.deviantart.com

I have no idea how to do it,

Thanks in Advance

推荐答案

您可以使用URL路由来完成。请参考以下链接:

文章:URL路由 [ ^ ]

网络应用2:URI路由 [ ^ ]





希望它有所帮助!

- 发送
You can do it using URL Routing. Refer the link below:
Article : URL Routing[^]
Web App 2 : URI routing[^]


Hope it helps!
--Amit


这篇关于url路由就像asp.Net web Forms中的子域一样c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆