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.

Remove index.php - Server Error 500

October 19, 2011 3:35pm

Subscribe [3]
  • #1 / Oct 19, 2011 3:35pm

    pgikkas

    43 posts

    I was trying to remove the index.php and followed the instructions to do so. When I refresh the panel I get a Server Error 500. I have spent several days scouring the internet but nothing seems to work. This is EE 2.2.2 on a Windows 7 (64 bit) system with XAMPP for the infrastructure.

  • #2 / Oct 20, 2011 10:14am

    Mark Bowen

    12637 posts

    Hi pgikkas,

    When you say refresh the panel what do you mean by this?

    Also if you are getting a 500 error then unfortunately this is the least helpful of errors on a server and you would need to ask your host about what exactly the error is here.

    When you say you followed the instructions are you referring to these instructions here or something else?

    Does everything work okay if you leave the index.php file in?

    Thanks,

    Mark

  • #3 / Oct 20, 2011 12:14pm

    pgikkas

    43 posts

    Mark.
    Thanks for your quick response.
    Refresh means use the refresh button on the browser to get a new copy of the programs/script after making a change.
    The Web server is Apache using XAMPP on my laptop so there is no host but me.
    Yes those are the instructions I was referring to.
    Yes the system works correctly when the index.php is in place and the remove instructions (.htaccess) have been backed out.

  • #4 / Oct 20, 2011 12:30pm

    Mark Bowen

    12637 posts

    Hi pgikkas,

    Unfortunately I don’t have any experience with using XAMPP although can you ensure that you have mod rewrite enabled on the server?

    Thanks,

    Mark

  • #5 / Nov 15, 2011 7:45pm

    pgikkas

    43 posts

    Well
    I am still struggling with removing the index.php file. I faithfully followed the instructions in the user guide at http://ellislab.com/expressionengine/user-guide/general/remove_index.php.html. During my debugging efforts I determined that it was the “RewriteEngine On” statement that causes the error 500. I commented out all the other statements and left only that statement and it still receives the error 500.
    I have double checked that mod_rewrite is turned on.

  • #6 / Nov 18, 2011 6:17pm

    Sean C. Smith

    3818 posts

    pgikkas,

    I’m using Windows 7 64bit and xampp. I’ve successfully removed index.php on my test install using the docs linked above. I did have an issue at first as I have my EE install in a sub-directory of htdocs and needed to make a change to the htaccess to reflect that.

    You can see in line 8 that I added /ellislab/fresh/ to reflect the subdirectories I am using inside of htdocs. If you have your install inside a subdirectory could you try that out.

    <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 ^(.*)$ /ellislab/fresh/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>

    Please get back to me with the results.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases