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.

Homepage displays This site will be offline momentarily while we perform some updates

September 19, 2013 10:20am

Subscribe [0]
  • #1 / Sep 19, 2013 10:20am

    RESULTSEdFund

    2 posts

    The homepage for my site will not display UNLESS I add /index.php to the URL

    http://www.results.org - displays error message
    http://www.results.org/index.php - displays the homepage

    This is the case even after I delete the .htaccess file

    Here is my .htaccess file

    <IfModule mod_rewrite.c>
          RewriteEngine On

          # Removes index.php from ExpressionEngine URLs
          RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ /index.php/$1 [L]
     
     
          redirect 301 /donate http://www.results.org/support_results/support_results/
          redirect 301 /take_action/become_a_results_activist/find_a_community_results_group http://www.results.org/site/find_a_community_results_group/
    </IfModule>

  • #2 / Sep 19, 2013 12:11pm

    RESULTSEdFund

    2 posts

    Update:
    I contacted the host - they said:

    The servers are configured to always add index.php to the end of a URL, so try changing your code to remove index.php to the following and see if it yields better results:

    RewriteEngine on
    RewriteCond $1 !^(images|eesys|themes|slideshow|images_survivors|favicon\.ico|scripts|robots\.txt|index\.php)
    [NC]
    RewriteRule ^(.*)$ /index.php/$1 [L]

    If index.php is not being added automatically without the .htaccess command in place, then ExpressionEngine may be removing it automatically for some reason.  To test this, one thing you can try is to temporarily replace your EE index.php with a random index.php file to see if it is indeed the CMS that is removing it.

    The suggested .htaccess code did not work - generated a server error, so I switched back to the code posted above.  Then:

    I replaced index.php with a random index.php and:

    http://www.results.org/index.php/ displays the content of the random index.php file
    http://www.results.org/ displays “This site will be offline momentarily while we perform some updates.”


    Turns out the file index.html, which i created months and months ago, and forgot about because it didn’t load for some reason, suddenly decided to start working.  Anyway.. all fixed now.

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

ExpressionEngine News!

#eecms, #events, #releases