473,320 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

subdomain url rewriting?

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 17 '05 #1
4 2436

"Leon" <vn*****@msn.com> wrote in message
news:em**************@TK2MSFTNGP10.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!


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

Willy.


Nov 17 '05 #2
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 [MVP]" <wi*************@telenet.be> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl...

"Leon" <vn*****@msn.com> wrote in message
news:em**************@TK2MSFTNGP10.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!


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

Willy.

Nov 17 '05 #3
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" <adam@NO******@q-state.co.NO_SPAM.uk> wrote in message
news:O9*************@TK2MSFTNGP15.phx.gbl...
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 [MVP]" <wi*************@telenet.be> wrote in message
news:OQ**************@TK2MSFTNGP12.phx.gbl...

"Leon" <vn*****@msn.com> wrote in message
news:em**************@TK2MSFTNGP10.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!


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

Willy.


Nov 17 '05 #4
Sorry Mr. Willy! Now your NG is happy again.

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...

"Adam Barker" <adam@NO******@q-state.co.NO_SPAM.uk> wrote in message
news:O9*************@TK2MSFTNGP15.phx.gbl...
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.

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill Borg | last post by:
Hello, I have a couple web services that I use across my apps. My isp supports exposing them either via subdomain (e.g. services.mydomain.com) or subfolder (e.g. mydomain.com/services). Are...
2
by: Leon | last post by:
How do I point a sub-domain to a sub-directory or .aspx page of my site using asp.net? I'm using a shared hosting service, that does not offer subdoman forwarding. however, you can write your...
2
by: Leon | last post by:
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...
1
by: perspolis | last post by:
Hi If I want to create subdomain for my site dynamicaly how can I do that with ASP.NET? or is it possib;e to create subdomain with IIS?? thanks
1
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and...
0
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User...
12
by: Tina | last post by:
Our company domain, say, wombat.com needs to create several subdomains: support, training, and purchase are three of the subdomains needed. So when someone browses to //training.wombat.com they...
3
by: a2rodger | last post by:
I am using the following function and parse_url() to attempt to grab the subdomain from my sites url function selfURL() { $s = empty($_SERVER) ? '' : ($_SERVER == "on") ? "s" : ""; $protocol =...
0
by: devilsjunk | last post by:
Hello Everybody, In my web application I have created an interface where, if any user register then a subdomain will be created with the user name of the user link this manner E.G. :-...
1
by: Josh | last post by:
I have a question about subdomains. I would like my website to have subdomains that essentially show my regular main website, except that the subdomain passes as a variable on all pages so that I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.