Multiple Sites Based on Folder Names Problem

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
9/15/2013 2:25:18 PM
Gravatar
Total Posts 32

Multiple Sites Based on Folder Names Problem

Hello,

I update my website to new version.

Everything is ok, except that when i put /br or /es (portuguese and spanish version) it goes to root (english version).

http://www.telecomhall.com/ (english)

http://www.telecomhall.com/br/ (should be portuguese, but is english too) :(

Does anyone here knows what am i missing?

BR,

Leo

9/15/2013 2:55:02 PM
Gravatar
Total Posts 32

Re: Multiple Sites Based on Folder Names Problem

As i said, everything seems fine with Setup.

And i cleared log file after it, and there's no error there (when i try to visit spanish site, but it shows only english roo home page)

 

[mojoPortal Content Management System]

Welcome to mojoPortal Setup

Setup is disabled but running setup anyway because current user is an administrator.
Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
3 site(s) found.
Configuring feature Html Content - 00:00:00.3276084
Configuring feature Site Statistics - 00:00:00.3744096
Configuring feature Child Page Site Map - 00:00:00.3744096
Configuring feature Newsletter Sign Up Form - 00:00:00.3744096
Configuring feature Recent Content - 00:00:00.3900100
Configuring feature Sign In Module - 00:00:00.4056104
Configuring feature Site Search - 00:00:00.4056104
Configuring feature Bing Map - 00:00:00.4212108
Configuring feature Blog - 00:00:00.4524116
Configuring feature Comments - 00:00:00.5304136
Configuring feature Contact Form - 00:00:00.5460140
Configuring feature Event Calendar - 00:00:00.5616144
Configuring feature Feed Manager - 00:00:00.5772148
Configuring feature Flickr Slide Show - 00:00:00.6084156
Configuring feature Flickr Gallery - 00:00:00.6240160
Configuring feature Image Gallery (Simple Folder Version) - 00:00:00.6240160
Configuring feature Forums - 00:00:00.6396164
Configuring feature Google Map - 00:00:00.6708172
Configuring feature Google Translate - 00:00:00.6864176
Configuring feature Html Fragment Include - 00:00:00.7020180
Configuring feature IFrame - 00:00:00.7020180
Configuring feature Image Gallery - 00:00:00.7176184
Configuring feature Audio Player - 00:00:00.7488192
Configuring feature Video Player - 00:00:00.7644196
Configuring feature List/Links - 00:00:00.7800200
Configuring feature Poll - 00:00:00.7956204
Configuring feature Shared Files - 00:00:00.8112208
Configuring feature Survey - 00:00:00.8268212
Configuring feature Web Store - 00:00:00.8424216
Configuring feature Xml/Xsl - 00:00:00.8580220
Ensuring all features are installed in server admin sites... - 00:00:00.8736224
Setup is complete, click the link below to go to the home page.
Site Home Page

Database PlatformMSSQL
Version2.3.9.8
StatusYour installation is up to date.
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

9/15/2013 3:26:05 PM
Gravatar
Total Posts 2239

Re: Multiple Sites Based on Folder Names Problem

Hello,

Please make sure the following is in your user.config file:

 <add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true" />

If it isn't there, add it and then restart your website by opening the web.config, adding a space to it and then saving it.

HTH,
Joe D.

9/15/2013 3:37:18 PM
Gravatar
Total Posts 32

Re: Multiple Sites Based on Folder Names Problem

Hello 

Yes, it is there. And was before (i didn't change my user.config).

Anyway, i did as your recommendation (change web.config).

But it keeps going to english site (site id 1), no matter if i put /br/ or put /es/.

:(

 

This is the settings i have in user.config, about multisite:

<!-- ******* multi site installation settings -->
<add key="AllowMultipleSites" value="true" />
<add key="AllowDeletingChildSites" value="false" />   
<!--      
    UseRelatedSiteMode means all sites in a multi site installation use the same users
        all users must have a site id so in this mode we use the same site id for all users
-->    
<add key="UseRelatedSiteMode" value="true" />
<add key="RelatedSiteID" value="1" />
<add key="RelatedSiteModeHideRoleManagerInChildSites" value="true" />
<add key="AllowFileManagerInChildSites" value="false" />
<add key="AllowPasswordFormatChangeInChildSites" value="false" />
<add key="ShowSystemInformationInChildSiteAdminMenu" value="true" />
<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true" />
<add key="DisallowedVirtualFolderNames" value="Admin;ClientScript;Controls;Data;FCKeditor;Modules;NeatHtml;NeatUpload;Secure;Services;Setup;SiteOffice;WebStore" />
<add key="EnableSSLInChildSites" value="false" />
<!--   
    if you want to have different smtp settings per site, set EnableSiteSettingsSmtpSettings to true
    and smtp settings will appear in SiteSettings. otherwise use the smtp settings below
-->
<add key="EnableSiteSettingsSmtpSettings" value="true" />
<add key="MaskSmtpPasswordInSiteSettings" value="true" />
<add key="ShowSmtpEncodingOption" value="false" />    
<!-- ******* end multi site installation settings -->

9/15/2013 4:06:47 PM
Gravatar
Total Posts 18439

Re: Multiple Sites Based on Folder Names Problem

Hi,

Did you go into site settings on each site and make sure the folder mapping still exists? I would check those mappings to make sure they are correct.

You did not mention what version you upgraded from?

Do you have if this setting?

<add key="UseTransferRequestForUrlReWriting" value="false"/>

If you don't have it then try adding it as false, the default is true so if the setting does not exist it will be true, maybe setting it to false will solve it.

Hope that helps,

Joe

9/15/2013 4:30:13 PM
Gravatar
Total Posts 32

Re: Multiple Sites Based on Folder Names Problem

Thanks a lot, Joe A/D. 100%

(I think this can be a solution for this topic too, am i right? >> topic = https://www.mojoportal.com/Forums/Thread.aspx?pageid=5&t=12033~1

I added this to user.config, and website is running great now.

<add key="UseTransferRequestForUrlReWriting" value="false"/>

About version (my last was 2.3.8.6)...

... because in the (very) past, i had a lot of problems when updating.

So, i postponed it as i could. My website have more than 1.000 visitors worldwide per day, so any small problem could became a big problem.

This Sunday, i decide it was time to be updated, i read a lot in the morning. Because i would like to add Facebook comments, Related Content (now possible in Blogs) and other enhanced stuff. 

After reading, i found that upgrading is very simple, you just have to follow guidelines.

The only part i missed in my readings, was this above tip.

Now that i know that it is simple, i will update more times. 

This is the steps i followed:

1) 
log as Admin

2)
Go to
Administration Menu > System Information
System Information
mojoPortal Version 2.3.8.5 MSSQL
Operating System Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET Info v2.0.50727 Running in Full Trust
Server Time Zone Pacific Daylight Time
Server Local Time (GMT -7) 9/15/2013 8:08:05 AM
Greenwich Mean Time (GMT/UTC) 9/15/2013 3:08:05 PM

3) 
Backup all files to a local folder (wwwroot);
Use Filezilla;
Rename wwwroot (all this files) to wwwroot_backup_aammdd;

4) 
Download last version; (mojoportal.com)
Extract wwwroot;
Put this extracted wwwroot to inetpub.

5)
APP_OFFLINE.htm

6)
Upload SETUP FILES
Upload CLIENT_SCRIPT FILES
Upload DATA FILES
Upload REST OF FILES


7)
Go to 
http://www.telecomhall.com/Setup/Default.aspx


mojoPortal Content Management System
Welcome to mojoPortal Setup

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema needs upgrade.
3 site(s) found.
3 site(s) found.
Running script mojoportal-core - 2.3.8.6 - 00:00:00.4836124
Running script mojoportal-core - 2.3.8.7 - 00:00:00.9984256
Running script mojoportal-core - 2.3.8.8 - 00:00:01.0764276
Running script mojoportal-core - 2.3.8.9 - 00:00:01.1076284
Running script mojoportal-core - 2.3.9.0 - 00:00:01.1076284
Running script mojoportal-core - 2.3.9.1 - 00:00:01.1700300
Running script mojoportal-core - 2.3.9.2 - 00:00:02.4492628
Running script mojoportal-core - 2.3.9.3 - 00:00:02.5896664
Running script mojoportal-core - 2.3.9.4 - 00:00:02.9640760
Running script mojoportal-core - 2.3.9.5 - 00:00:03.4632888
Running script mojoportal-core - 2.3.9.6 - 00:00:03.6816944
Running script mojoportal-core - 2.3.9.7 - 00:00:03.7284956
Running script mojoportal-core - 2.3.9.8 - 00:00:04.4461140
Configuring feature Html Content - 00:00:04.5865176
...
...
Ensuring all features are installed in server admin sites... - 00:00:08.2838124
Setup is complete, click the link below to go to the home page.
Site Home Page

Database PlatformMSSQL
Version 2.3.9.8
StatusYour installation is up to date.

Thank You very much.

 

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