Sub-site

Topics: Developer Forum
Oct 22, 2008 at 1:06 PM
Edited Oct 22, 2008 at 1:09 PM
Hi, We have an existing website (e.g. http://www.example.com) written in ASP .Net 2.0, with various pages (e.g. http://www.example.com/some-function.aspx). We want to provide our users with some static content as well, and we need this to be driven by a basic CMS. But we do not want the whole site to be CMS driven, just a section within it. We want it to be on the same domain, within a "content" folder (e.g. http://www.example.com/content/some-article.aspx would be driven by the CMS, but not the rest of the site). Is this possible? If so, how do I do this? Would it involve an Alias or Virtual Directory in IIS? Would this cause issues with web configs, and perhaps paths to pages and images?Many thanks, Tim
Coordinator
Oct 22, 2008 at 8:38 PM
Hi, you can install the site in a sub-application. No problems there. It's also possible to install it alongside your existing app. When N2 finds an existing file it won't get in the way.
Jan 4, 2010 at 5:43 PM
Edited Jan 4, 2010 at 5:50 PM

@timstokes - did you try this?

@everyone - I've tried doing as described in the initial question:

   http://www.mydomain..com - mix of aspx and html content

   http://www.mydomain..com/mycms/ - n2 MVC templates site to try all this out

...where mycms is a virtual directory.

I'm on a shared hosting plan so I don't know exactly what the IIS config is. They tell me they've 'added the wildcard mapping for MVC to work' but I don't know any more than that, I can only control certain aspects of the IIS config through an admin UI (it's DotNetPark control panel).

Starting from an MVC templates site (version 2.0 alpha) I used the VS2008 'Publish' function to dump only the requires files to a folder.

The site is deployed up to the root folder of the /mycms/ virtual directory in my hosted space.

The site only partially works - but I get no CSS at all. I also cannot get to the /edit pages at all.

Anyone have any suggestions?

Thanks.

Coordinator
Jan 4, 2010 at 8:13 PM

See the answer in the other thread.