954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ASP - How to create Subdomain

Hello,

Does anyone know how do I create a subdomain using ASP?

I run my own server so I have the full access to it (if that is needed for the same)


Thanx

cancer10
Posting Whiz in Training
234 posts since Dec 2004
Reputation Points: 58
Solved Threads: 1
 

regular ASP or ASP.NET? (if the latter is it v1 or v2?)
is it windows servern 2003?

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

Actually I am trying to create a blog service where my visitors can create their own blogs which will host on my server. I want to give them their subdomain either as http://username.myserver.com or http://myserver.com/username

can u tell me an easy method of doing this. I actually dnt want to give out URL containing querystrings as their blog URL like http://myserver.com/index.asp?username=john

I want them to give out like http://myserver.com/username


Any ideas?

cancer10
Posting Whiz in Training
234 posts since Dec 2004
Reputation Points: 58
Solved Threads: 1
 

http://myserver.com/username is not a subdomain. thats a folder

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

ok so how do i do that?

cancer10
Posting Whiz in Training
234 posts since Dec 2004
Reputation Points: 58
Solved Threads: 1
 

you can use path info or use rewriting for this address rewriting get you address like
http://myserver.com/userName
this address show to user but for IIS this Means to
http://myserver.com/default.aspx?userName=userName
this is very easy

path info get address like
http://myserver.com/default.aspx/userName
this is not Beautiful

for path info use

Request.PathInfo

for rewriting search in google

Rahmani69
Newbie Poster
1 post since May 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You