如何使用c#创建子域名,使用asp和子域打开特定页面 [英] how to create sub domain with username using c# and asp and a subdomain open a particular page

查看:127
本文介绍了如何使用c#创建子域名,使用asp和子域打开特定页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用asp.net和c#创建子域,当用户创建他的数据或创建他的信息页面时,他们将得到像abc.example.com这样的子下层,并且在这个链接上他们可以访问他们的页面或他们的信息。一个页面。

我不知道使用c#和asp创建一个带有用户名的子域名。

跳你会帮我....

How to create sub domain using asp.net and c#, when user create his data or create his information page , they will get a subdomian like abc.example.com and on this link they can access their page or their information on a page.
I don't have any idea to create a sub domain with username using c# and asp.
hop u'll help me....

推荐答案

子域控制不是你的应用程序的一部分,并且不受控制ASP.NET(除非您有权访问某些作为ASP.NET公开的DNS控制应用程序,但它几乎不是您的ASP.NET应用程序:-))。这是托管和DNS数据的问题。您需要向您的托管服务提供商致电。



对于某些背景:

http://en.wikipedia.org/wiki/Domain_Name_System

http://en.wikipedia.org/wiki/Subdomain



-SA
Subdomain control is not the part of your application and is out of control of ASP.NET (unless you have access to some DNS control application exposed to you as ASP.NET, but it's hardly your ASP.NET application :-)). This is a matter of hosting and DNS data. You need to address to your hosting provider.

For some background:
http://en.wikipedia.org/wiki/Domain_Name_System,
http://en.wikipedia.org/wiki/Subdomain.

—SA


我猜,你想在每次注册新用户时创建一个新的子域。这就是Web服务提供商有时会做的事情,即为没有购买和不购买自己域名的用户提供服务。但是你无法控制域系统和服务器DNS。



这是替代方法:



您需要使用URL的替代命名,而不是基于子域。例如,考虑使用 URL重写

http:// en。 wikipedia.org/wiki/Rewrite_engine [ ^ ],

http://support.microsoft.com/en-us/kb/976111 [ ^ ],

使用ASP.NET重写URL的示例 [ ^ ]。



-SA
As I can guess, you wanted to create a new sub-domain each time the new user is registered. This is what Web service providers sometimes do, to serve up the users no having and not purchasing their own domains. But you don't have control over the domain system and server DNS.

Here is the alternative approach:

You need to use some alternative naming of the URLs, not based on subdomains. Consider using, for example, URL rewrite:
http://en.wikipedia.org/wiki/Rewrite_engine[^],
http://support.microsoft.com/en-us/kb/976111[^],
An Example of URL Rewriting With ASP.NET[^].

—SA


这篇关于如何使用c#创建子域名,使用asp和子域打开特定页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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