ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE Version Update and MSM Update - Sites only showing index pages

March 15, 2012 7:17am

Subscribe [2]
  • #1 / Mar 15, 2012 7:17am

    Mattias01

    55 posts

    Hi I just attempted to update EE to the latest version along with updating the multisite manager and I’ve run into a problem.

    I have 6 sites running off one EE install. After updating the main site works fine however I can only access my 5 other sites home pages. The url of the inner page links appear correct, however when I click them it just takes me to the home page for that particular site.

    When I initially set up the MSM, my host helped me configure it by setting up some .htaccess rules in the main directory.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} (www.)?myinnerdomain.com
    ReWriteCond %{REQUEST_URI} !myinnerdomain/
    RewriteRule ^(.*)$ /myinnerdomain/$1 [L]

    and then in the index.php file for that innerdomain, I have added:

    $assign_to_config['site_name'] = 'myinnerdomain';

    this was all working fine, until the upgrade.

    I’ll also note that I can access the inner pages fine if I add the name of the main url..

    http://www.mydomain.com/myinnerdomain/index.php/about-us

    any ideas?

    thanks in advance

  • #2 / Mar 15, 2012 11:00pm

    Mattias01

    55 posts

    Seem to have got this working,

    by going into the control panel >> general configuration for each site and removing index.php from the name of the sites index page (so it’s blank), it’s all working.

    Any idea why this was required after the upgrade?

  • #3 / Mar 16, 2012 10:36am

    Shane Eckert

    7174 posts

    Hello mattias78,

    Thank you for posting your question.

    I am not sure why removing the index.php from the Control Panel caused things to work.

    Are you removing your index.php in the .htaccess file?

    I am glad to hear it working though, that’s awesome. Is there anything else I can help with?

    Cheers,

  • #4 / Mar 18, 2012 8:32pm

    Mattias01

    55 posts

    this is the only code in the .htaccess file…

    RewriteEngine on
    RewriteCond %{HTTP_HOST} (www.)?myinnerdomain.com
    ReWriteCond %{REQUEST_URI} !myinnerdomain/
    RewriteRule ^(.*)$ /myinnerdomain/$1 [L]

    is that removing the index.php from the url?

  • #5 / Mar 19, 2012 4:57pm

    Shane Eckert

    7174 posts

    Hey mattias78,

    Very odd. That rewrite rule is dealing with www in the URL.

    What if you add this as well?

    <IfModule mod_rewrite.c>
          RewriteEngine On

          # Removes index.php
          RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ /index.php/$1 [L]

          # If 404s, “No Input File” or every URL returns the same thing
          # make it /index.php?/$1 above (add the question mark)
    </IfModule>

    I still do not see why removing the index.php from that field would cause things to work. Something is still not right. I am glad it’s working, don’t get me wrong, but would love to know why.

    Can you take a screen capture of the settings page for Admin->General Configuration?

    Is there thing else that is acting up anywhere in the Control Panel?

    Thanks,

  • #6 / Mar 19, 2012 10:15pm

    Mattias01

    55 posts

    So if I add this to the main .htaccess file…

    # Removes index.php
          RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ /index.php/$1 [L]
    
          # If 404s, “No Input File” or every URL returns the same thing
          # make it /index.php?/$1 above (add the question mark)

    the main site works fine, however, if I visit a child site, for instance myinnerdomain.com/about_us it displays the parent page, but using the child pages url?

    so it shows the content for mymaindomain.com/about_us but the url displays as myinnerdomain.com/about_us

  • #7 / Mar 19, 2012 10:18pm

    Mattias01

    55 posts

    tried to PM you screenshots, I’m getting an error telling me your inbox is full

  • #8 / Mar 21, 2012 6:09pm

    Sean C. Smith

    3818 posts

    Hi Mattias,

    with the .htaccess file you’ll need to add it to the root of each of your sites for it to take affect in each of them. Please try that and then get back to us here.

    You can attach screenshots to your post here - don’t use the quick reply button but instead use post reply and at the bottom of hte screen you’ll have a link to attach files.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases