By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,028 Members | 829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,028 IT Pros & Developers. It's quick & easy.

subdomain url rewriting?

P: n/a
Is it possible to allow my website user's to enter the site using a
subdomain name such
johndoe.mywebsite.com then a automated script in the Global.asax file within
the
Application_BeginRequest redirect the user to
mywebsite.com/index.aspx?username=johndoe?
if so then how?

I kind of know how to perform this task with vanity url's such as
mywebsite.com/johndoe, but not
subdomain name. Thanks!
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Set up an HTTP Handler to do this for you. The following article gives an
example you should be able to tailor for your needs:

http://www.ftponline.com/vsm/2002_02...a/default.aspx

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Leon" wrote:
Is it possible to allow my website user's to enter the site using a
subdomain name such
johndoe.mywebsite.com then a automated script in the Global.asax file within
the
Application_BeginRequest redirect the user to
mywebsite.com/index.aspx?username=johndoe?
if so then how?

I kind of know how to perform this task with vanity url's such as
mywebsite.com/johndoe, but not
subdomain name. Thanks!

Nov 19 '05 #2

P: n/a
it done with iis. there are two methods

1) each dns entry get a unique ip address. in this case iis setup with
multiple ippaddress and each ipaddress is a unque site.

2) using http 1.1, all dns entries get the same ipaddress, and a website is
setup for each subdomain name use the host header.

-- bruce (sqlwork.com)

"Leon" <vn*****@msn.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Is it possible to allow my website user's to enter the site using a
subdomain name such
johndoe.mywebsite.com then a automated script in the Global.asax file
within the
Application_BeginRequest redirect the user to
mywebsite.com/index.aspx?username=johndoe?
if so then how?

I kind of know how to perform this task with vanity url's such as
mywebsite.com/johndoe, but not
subdomain name. Thanks!

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.