subdomain url rewriting?

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!
 
W

Willy Denoyette [MVP]

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.
 
A

Adam Barker

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

Ignacio Machin \( .NET/ C# MVP \)

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.
 
W

Willy Denoyette [MVP]

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.
 
L

Leon

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top