473,657 Members | 2,711 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.c om"), and redirect them to the appropriate
place on within site ("such as
mydomain.com/display.aspx?Us erId=1&DisplayI d=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 1526

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

Similar topics

4
2452
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 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
1
2087
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 some of the usual one (.zip, .doc, etc). The .zip, .doc, etc files download without a problem but I continually get a 404 error on the .car files even though they are there and the path is correct. BUT if I change the "test" part of the URL to...
11
1572
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 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/help/leon05"), and where do I want to put this code in default page of the website or...
2
2289
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 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
3
2427
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 subfolder. In the subfolder the error is: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error
3
2141
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 public_html folder. I need to find a way to redirect eahc subdomain to it's user folder.
2
1980
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 the apporiate page and if not it will go the the home page. the reason i am doing this is because of a client who apparently has major intelligence issues. but the problem is that i don't know how to get the full url they entered in....
8
2799
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 from http://opendomains.vnn.bz/ and many others. So now I want to ask you if you know of any script in PHP, Perl, Phyton that can accomplish this task?
12
3049
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 will be directed to the IP we have assigned. I have two questions: 1. how can I do this at design time? 2. how can I do this at run time from my asp.net code? Thanks,
0
8319
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6175
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.