6

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]
</IfModule>
2
  • 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. Commented Dec 20, 2012 at 15:34
  • Wouter, thanks for the reply, but I got this all fixed here: expressionengine.stackexchange.com/questions/1952/… Commented Dec 21, 2012 at 2:44

1 Answer 1

4

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
</Directory>

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.