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.

htaccess issues, 404 page and system offline page

June 25, 2011 4:11pm

Subscribe [1]
  • #1 / Jun 25, 2011 4:11pm

    bobh

    145 posts

    Hi, I’m experiencing issues with my htaccess configuration using the standard ‘File and Directory Check’ method to remove index.php:

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

    I have a standard template group ‘home’ with this simple index template:

    {if segment_1 =="whatever"}
        whatever
    {if:else}
        homepage
    {/if}

    Basically, using any other segment_1 than ‘home’ results in a ‘Status: 404 Page Not Found’.

    On top of that, even stranger, when I visit http://www.mydomain.com, the ‘www’ is cut from the url and I’m shown the ‘System Offline’ page, even though I’m logged in as super admin. This actually happens with and without a htaccess file in place.

    Is this a server issue? Could upgrading to 2.2 fix this? I’m using 2.1.3 b20110411

  • #2 / Jun 26, 2011 7:40am

    bobh

    145 posts

    Fixed, had to set ‘Enable Strict URLs’ to ‘no’ in Global Template Preferences.

  • #3 / Jun 27, 2011 2:18am

    Marcus Neto

    1005 posts

    bobh,

    I’m going to close out this thread as it appears you have resolved it. If you have any further questions don’t hesitate to start another.

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

ExpressionEngine News!

#eecms, #events, #releases