Dynamic Subdomains asp

S

steve

Hi

I am writing an application which ideally requires the creation of
subdomains dynamically via asp. However I want all the subdomains to
point to 1 asp file, which I wish to use to figure out which subdomain
has been typed in the url and to process it appropriately.

I was thinking of 2 possible approaches and I am a bit 'cloudly' about
both:

1. Creating a catchall subdomain (not sure of the best way to do this)
pointing all subdomains *.domain.com to an asp file and figuring out
what subdomain has been used.

2. Creating a subdomain dynamically as and when a user registers a
subdomain and pointing them all again to the same asp page.

Ideally I would prefer method 2 as many people don't have access to
their server, however if this is just not possible, method 1 would do.

Does anyone have any ideas?

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top