Multiple sites based on Folder Names

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/21/2011 1:12:16 PM
Gravatar
Total Posts 31

Multiple sites based on Folder Names

Hello Joe,

We hosted multiple sites based on Folder Names.
The folder "Sitename" exists and it contains a file named Default.aspx.
When we visit the site "www.test.com/Sitename" the following error appears

2011-09-17 12:44:42,342 ERROR mojoPortal.Web.mojoSiteMapProvider - failed to add node to sitemap
System.InvalidOperationException:
Multiple nodes with the same URL '/Sitename/default.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.
  
at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode)
   at mojoPortal.Web.mojoSiteMapProvider.BuildSiteMap()

How can we solve this problem?

9/25/2011 8:15:19 AM
Gravatar
Total Posts 18439

Re: Multiple sites based on Folder Names

Hi,

you should not enter /Default.aspx as the friendly url for any page, neither in a root site nor in a folder site.

You should make the home page in the folder site have an url like ~/home.aspx, you can still set the cannonical url as http://yourdomain/sitename/ from Page Settings

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.