davidebb wrote: |
| The one reason I can think of to do this is if you have a very large number of sites, in which case you will scale better with a single app. Is that your situation? |
|
Yes, that is precisely my situation. I create small, personal websites. It is unnecessarily expensive to purchase a new hosting plan for each and every new website. It is more economical to purchase one advanced hosting plan, and allow its single ASP.NET application to drive a number of separate websites. This works today, and works fine.
I then attempted to install the Personal Site Starter Kit as a "child" site:
/root
/bin
personal-site.dll
example1.dll
/sites
/personal.com
default.aspx
/example1.com
default.aspx
I started removing all of the tilde-based paths from the Personal Site Starter Kit, and then questioned whether I could instead change the behaviour of the tilde-based paths. I hit the framework with Reflector, but could not find an "overridable point" that would allow me to change the way tilde-based paths resolve.
I don't mind a non-trivial solution. But even with a provider pattern solution, I don't see how I can affect the behaviour of the System.Web.UI classes that resolve a tilde-based path. If you can provide any clues, I'd be very grateful.