subdomain url rewriting?

  • Thread starter Thread starter Leon
  • Start date Start date
L

Leon

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!
 
Leon said:
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!

How does this relate to C#?
Please post asp realated questions to the
microsoft.public.dotnet.framework.aspnet NG.

Willy.
 
It relates to C# because you can write a HttpModule which can process this
request and redirect the [user] to a different location.
 
Hi,

It needs more, first he need a DNS that translate all of the XXX.domain.com
to www.domain.com , IIRC in linux you can do this, no idea if you can do it
in windows

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Adam Barker said:
It relates to C# because you can write a HttpModule which can process this
request and redirect the [user] to a different location.

Willy Denoyette said:
How does this relate to C#?
Please post asp realated questions to the
microsoft.public.dotnet.framework.aspnet NG.

Willy.
 
Adam Barker said:
It relates to C# because you can write a HttpModule which can process this
request and redirect the [user] to a different location.

This NG is for C# language question/issues, and what OP posted is not a C#
question.
It's also not an Httpmodule question either, and if it was, still the most
relevant NG would be aspnet.

Willy.
 
Sorry Mr. Willy! Now your NG is happy again.

Willy Denoyette said:
Adam Barker said:
It relates to C# because you can write a HttpModule which can process
this request and redirect the [user] to a different location.

This NG is for C# language question/issues, and what OP posted is not a C#
question.
It's also not an Httpmodule question either, and if it was, still the most
relevant NG would be aspnet.

Willy.
 
Back
Top