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.

removed index.php now login problems etc...

December 09, 2008 8:12pm

Subscribe [1]
  • #1 / Dec 09, 2008 8:12pm

    elyk22

    14 posts

    Ok I’m stuck…

    I have spent the last two days researching your forums and got the index.php to drop using Leevi’s generator. I can hand code the URL in address bar and get into the members area but my login page for members instantly directs to the homepage, searches within the members area goes to homepage and member functions like view member list and member control panel show blank pages.

    The odd thing is through testing if I keep index.php in the General Config - I can successfully login through the members area?

    I have just moved this install to a new host they said mod_rewrite is on and is running Apache 2.2

    I have tried removing all .htaccess info and start from scratch but my members area is still buggy and login won’t direct to landing page?

    My setup so far is as follows:

    ExpressionEngine v 1.6.4
    $qtype =2;
    force query strings - no
    .htaccess (at end of this post)

    Any help is appreciated!

    .htaccess Leevi generator
    
    DirectoryIndex index.html
    
    # -- LG .htaccess Generator Start --
    
    # .htaccess generated by LG .htaccess Generator v1.0.0
    # <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/">http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/</a>
    
    # secure .htaccess file
    <Files .htaccess>
     order allow,deny
     deny from all
    </Files>
    
    # Dont list files in index pages
    IndexIgnore *
    
    # EE 404 page for missing pages
    ErrorDocument 404 /index.php?/
    
    # Simple 404 for missing files
    <FilesMatch "(\.jpe?g|gif|png|bmp)$">
      ErrorDocument 404 "File Not Found"
    </FilesMatch>
    
    RewriteEngine On
    
    RewriteBase /
    
    # remove the www
    RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
    RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    # Add a trailing slash to paths without an extension
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
    RewriteRule ^(.*)$ $1/ [L,R=301]
    
    # Remove index.php
    # Uses the "include method"
    # <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/(site|search|photos|realty|for-sellers|members|P[0-9]{2,8}) [NC]
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    
    # Remove IE image toolbar
    <FilesMatch "\.(html|htm|php)$">
      Header set imagetoolbar "no"
    </FilesMatch>
    
    # -- LG .htaccess Generator End --
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases