473,471 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 19 '05 #1
2 2381
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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...
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...
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.