473,503 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

subdomain redirect within application

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 own asp.net redirect code, and I just want to
the best way to accomplish this task. it's possible that I may could have a
1000
subdomain names to redirect, but within the same application, to the same
page
within the aplication that then get some data from the database to format
the current page.

I know it is possible for me to forward all subdomain name to my site using
the wildcard(*),
but is it possible to send all subdomain to the same .aspx page than get the
beginning of the
current subdomain such as ("leon.mydomain.com") leon with then grab some
leon information
from the database to format the page?

I know normally domains are setup to point to the root directory of the web
site. However, how can I detect which URL a person is browsing to on my site
with ("such as leon.mydomain.com"), and redirect them to the appropriate
place on within site ("such as
mydomain.com/display.aspx?UserId=1&DisplayId=10"),
and where do I want to put this code in default page of the website or in
the global.asax
file.

Thanks!
Nov 17 '05 #1
0 1514

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

Similar topics

4
2440
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
2067
by: Michael Horton | last post by:
SQL Version: 2000 OS Version: Server 2003 I've got a sub-domain (test.mydomain.com) that I use for testing. In it I've got some un-common files available for download (.car extension) along with...
11
1556
by: Leon | last post by:
How do I point a sub-domain to a sub-directory or sub-web of my site using asp.net? I know normally domains are setup to point to the root directory of the web site. However, how can I detect...
2
2273
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...
3
2416
by: Benny Dein | last post by:
Hi I'm trying to run a simpel asp.net 2.0 web appl. on a hosted webserver. The only place where my app can run is in the root directory on my domain. It can't run in either a subdomain or a...
3
2132
by: Maximus | last post by:
I have a registration form, when after registering, the user would get a subdomain http://username.domainname.com I created a wildcard DNS which happened to redirect *.domainname.com to the...
2
1973
tolkienarda
by: tolkienarda | last post by:
hi all i have a wildcard subdomain that will redirect all subdomains to one page. this page is a php script that will read the what subdomain they entered and if it is valid it will redirect to...
8
2789
by: stiv | last post by:
I want to give users of my site the option to register for a subdomain redirection service. I scanned the Internet for some script, but didn't really find anything that works. Tried the PHP script...
12
3030
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...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
5023
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
4689
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
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
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
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 ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.