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
    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. – Wouter Vervloet Dec 20 '12 at 15:34
  • Wouter, thanks for the reply, but I got this all fixed here: expressionengine.stackexchange.com/questions/1952/… – Aaron Bushnell Dec 21 '12 at 2:44
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>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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