Web Hosting Talk







View Full Version : redirect Subdomains to Main Url


Shahab
01-20-2008, 09:46 AM
hi,
I'm programming a little site for company.
Now every user have a single page like this :
www.URL.com/employment.aspx?employmentname = ...
Now we want every employment have a subdomain. it mean when visitors enter :

employmentname.URL.com
it show a page exactly like :
www.URL.com/employment.aspx?employmentname = ...

the site is fully dynamic and sql in back. How I can do it without copies all files to all subdomains ???:confused:

best:agree:

ebooboy
01-20-2008, 10:49 AM
Perhaps you could do this by editting

http://www.vbulletin.org/forum/showthread.php?t=155054

to your needs

Harzem
01-20-2008, 10:50 AM
The problem is that OP is probably using a Windows server and all Linux tricks will fail. I know a few linux tricks myself, but not for windows and aspx.

dollar
01-20-2008, 11:04 AM
Not sure how much help it will be but here's a MSDN article on IIS redirection techniques: http://blogs.msdn.com/david.wang/archive/2005/08/01/HOWTO_Common_URL_Redirection_Techniques_for_IIS_Summary.aspx

splatcatballa99
01-20-2008, 01:37 PM
use a wildcard dns entry, then grab the employees name from the subdomain and use it like you used it with ?employmentname (http://www.url.com/employment.aspx?employmentname) = ...