Multple Sites 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.
5/18/2017 1:00:45 PM
Gravatar
Total Posts 12

Multple Sites Folder Names

I just tried to add additional sites using folder names but the site 2, 3 etc won't come up. Page not found.
I followed the instruction from here:
https://www.mojoportal.com/multiplesitesbasedonfoldernames.aspx
I edited the webconfig:
In Web.config, set UseFoldersInsteadOfHostnamesForMultipleSites="true" and  added this line <add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true" />

I created a new site and in the new site I mapped the site to site2, that was created. I added a blank Default.aspx file to Data/Sites/2 folder that was created.

Did I miss something?

Thank you in advance
Greg
 

5/26/2017 4:27:17 PM
Gravatar
Total Posts 9

Re: Multple Sites Folder Names

Found the problem.
Double entry in webconfig
<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true" />
One set to true and the next one, which was way down the page, set to false.

Also when mapping the folder use the folder number only, 2,3 ETC.
Site2 will not exist.

The instruction page is a little out of date.

6/15/2017 7:46:13 PM
Gravatar
Total Posts 2253

Re: Multple Sites Folder Names

Hi Greg,

I've taken a look at the documentation and I'm not sure what is out of date except the few mentions about Apache. Can you point out what was wrong with the documentation (besides being horribly formatted)?

I'm going to take a look at revising the code so that the empty default.aspx file doesn't need to exist. If we can alleviate the need for that file, that would make folder based child sites a lot easier to configure.

Thanks,
Joe

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