Search code examples
expressionengine

Expression Engine hide index.php not working correctly


I am working on a site that was working before someone else made some changes to the site. Now, I have to include index.php to the URL before the contact form will work.

Here is the htaccess file code I am using:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]

What am I missing here?

Thanks.


Solution

  • The ? after index.php indicates to me that you're running PHP as CGI ... perhaps that was changed?

    Also see: https://stackoverflow.com/a/11143216/174299