您的位置:首页 > 编程语言 > ASP

Dynamic Subdomain in ASP.NET

2016-01-13 22:57 561 查看
1. Background

(1) Some of our frequently visited websites have dynamic subdomain. we'd like to dig it deeper.

(2) I would like to have each user of my application get their own sub-domain. for example: user1subdomain.mydomain.com

Why would you want to use subdomain? Using a subdomain rather than a path makes it much clearer (to users and search engines) that the sites are separate and distinct. Having separate domains also gives the customer a feeling
of ownership - they’re not sharing the domain with anyone else.

How? step 1: Wildcard DNS setup for *.yourdomain.com pointing to your server.

2. Concept 1: DynDNS

3. Concept 2: Wildcard DNS

4. Concept 3: URL Rewriting

TO BE CONTINUED.

References:

[1] http://stackoverflow.com/questions/1204067/dynamically-add-subdomains
[2] http://blog.lukesampson.com/subdomains-for-a-single-application-with-asp-net-mvc
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: