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.

Removing index.php issues

November 13, 2012 8:50am

Subscribe [1]
  • #1 / Nov 13, 2012 8:50am

    Lisa E

    124 posts

    Hello—

    I followed the steps on removing index.php. I’ve had no problems doing this in the past, but I’m on a server that is not hosted by a provider that I am familiar with and I’m having some issues.

    I followed both methods of the ReWrite Rule (forced and unforced query strings), but when I remove index.php I still get a 404.

    Any ideas of anything else that could be causing this issue? I’m not on a sub-domain.

    Sincerely,

    Stumped!

    Thanks!

    Lisa

  • #2 / Nov 13, 2012 8:56am

    glenndavisgroup

    436 posts

    Hi Lisa,

    Which version of EE are you using?

    Can you post your entire htaccess content here so we can have a look?

    Thank you,

    Mike

  • #3 / Nov 13, 2012 9:06am

    Lisa E

    124 posts

    EE 2.5.2

    <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]
    </IfModule>
  • #4 / Nov 13, 2012 9:11am

    glenndavisgroup

    436 posts

    Hi Lisa,

    Try changing the last rewrite rule to the following:

    RewriteRule ^(.*)$ /index.php?$1 [L]

    Let me know if that works.

    Thank you,

    Mike

  • #5 / Nov 13, 2012 9:22am

    Lisa E

    124 posts

    Did not work.
    The interesting thing is I can leave the htaccess file edited and up and if i put index.php back into EE, it doesn’t seem to effect at all.

  • #6 / Nov 13, 2012 9:38am

    glenndavisgroup

    436 posts

    Does the site work if you don’t remove index.php?

    Mike

  • #7 / Nov 13, 2012 10:04am

    Lisa E

    124 posts

    yep

  • #8 / Nov 13, 2012 1:52pm

    glenndavisgroup

    436 posts

    Did you by any chance remove the index.php from “Admin > General Configuration > Name of your site’s index page”? You should also clear your EE cache just to make sure there is nothing being cached.

  • #9 / Nov 13, 2012 2:05pm

    Lisa E

    124 posts

    Yes…no luck :(

  • #10 / Nov 13, 2012 2:27pm

    glenndavisgroup

    436 posts

    The only other thing I can think of is your htaccess is disabled. Can you check with your hosting company to make sure that you can use htaccess files?

    Mike

  • #11 / Nov 13, 2012 6:14pm

    Lisa E

    124 posts

    That was the issue. ALl good now. Thanks for the help, Mike!

  • #12 / Nov 14, 2012 11:03am

    glenndavisgroup

    436 posts

    No problem. I’m glad you got it sorted out :D

    Mike

  • #13 / Nov 15, 2012 11:04am

    Dan Decker

    7338 posts

    Hi Lisa!

    Nice to see that you and Mike were able to sort it out!

    If we can do anything else, please let us know.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases