I'm having issues removing index.php from the URLs even though mod_rewrite is enabled. My htaccess code:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    # If 404s, "No Input File" or every URL returns the same thing
    # Use instead of above: RewriteRule ^(.*)$ /index.php?/$1 [L]
  • 2
    What happens exactly? Do you get a server error? If you still get the index.php in the URL you have to remove it in your config. You have to make sure the value for 'Name of your site's index page' in the config panel is empty. Dec 20, 2012 at 15:34
  • Wouter, thanks for the reply, but I got this all fixed here: expressionengine.stackexchange.com/questions/1952/… Dec 21, 2012 at 2:44

1 Answer 1


Found the answer from another question.

Had to add AllowOverride in httpd-vhosts.conf:

<Directory "C:\Site\Root\Path">
    AllowOverride All
    Order Deny,Allow  
    Allow from all

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.