如何在VB.NET中以编程方式创建子域 [英] How to create subdomain programmatically in VB.NET
问题描述
你好..
我正在.net和vb.net中开发一个项目,提供带有子域的免费虚拟主机,
如Geocities和Tripod.
但是我不知道如何通过vb.net编码以编程方式创建子域.
由于用户将填写会员表格并成为会员,因此他将获得类似
的网址
http://subdomain.domain.com自动,
我不知道动态创建子域,我明白了
如果您对以任何语言以编程方式创建子域有任何想法,或者有任何一般想法,请plz请帮助我
提前感谢:)
阿西夫·艾哈迈德(Asif Ahmed)
asif@webonretail.com
Hello..
I am developing a project in .net and vb.net, offering free web hosting with subdomain,
like Geocities and Tripod.
but i dont know that how to create subdomain programmatically by vb.net coding.
As the user will fill the member forms and will become the member , he will get a url like
http://subdomain.domain.com automatically,
i have no idea about subdomain creation dynamically , got my point
if you have any idea about subdomain creation programmatically in any language or having any general idea plz plz help me
Thanx in advance :)
Asif Ahmed
asif@webonretail.com
推荐答案
好吧,第一件事是对AName记录使用通配符,该通配符允许您以编程方式管理主机头并映射*.将domain.com更改为特定IP.然后,您只需要开发系统来使用基于此子域的绝对URL引用来解决该问题.
Well, the first thing is to use a wildcard for your AName record that allows for you to manage your host headers programmatically and map *.domain.com to a specific IP. Then, you''ll just need to develop the system to account for it using absolute URL references based on this subdomain.
这篇关于如何在VB.NET中以编程方式创建子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!