Forum Moderators: open

Message Too Old, No Replies

URL rewriting & subdomains

URL rewriting & subdomains

         

newtoaspnet

5:24 pm on Mar 25, 2005 (gmt 0)



Hi,

I have to create one subdomain website for each user. I have five pages, users can edit the pages and all the html content is stored in the database. I have developed the pages, where I get the name of the subdomain from the url and get the html contents for that page from the database.

Because no code is specific to a subdoamin, I don't want to copy all the files and folders for each subdomain. I was thinking of creating one main subdoamin with all the files and folders. And for all other users just have one default.aspx and do url rewriting from global.asax pointing to the main subdomain. How do I do this? Or is there another way to accompolish the same?

Thank you.

Jimmy Turnip

9:28 am on Apr 13, 2005 (gmt 0)

10+ Year Member



Do it in IIS. Get all the relevant web sites (or subdomains in your case) to point to the same folder.