SubProject OR SubFolder ?
Posted
by user300435
on Stack Overflow
See other posts from Stack Overflow
or by user300435
Published on 2010-05-26T22:54:30Z
Indexed on
2010/05/26
23:01 UTC
Read the original article
Hit count: 225
I am writing an asp.net application that exposes data in 2 ways: 1 - 1 common section that all users can see 2 - a Section that displays data specific to a registered user. in this case the user can decide how it looks (through themes), and manage the data to be displayed.
Of course, the logic behind is the same, appearance would be different for as user1 and user2
The questions are :
- What would be best using : 'http://www.site.com/User1' or 'http://user1.site.com'. knowing that in both cases i have to make the displayed pages look like a seperate site then the root domain
- in anycase, the pages that will be displayed and customized on the fly are located in a subfolder of the of the asp.net project (projectrootpath\personalpages). What is the best way to map the personalpages subfolder to a subdomain or a 'http://www.site.com/userX' in the address bar. i also use "~/" in the urls which in this case needs to point to the personalpages rather then the root .
Any help is gretaly apreciated.
© Stack Overflow or respective owner