Skip to content

Instantly share code, notes, and snippets.

@corpsefilth
Created March 16, 2015 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corpsefilth/3e62d5cb76c863222d62 to your computer and use it in GitHub Desktop.
Save corpsefilth/3e62d5cb76c863222d62 to your computer and use it in GitHub Desktop.
Rewrite all index.php out of url on front end but not backend in magento, add this to .htaccess file
## rewrite everything else to index.php
RewriteRule .* index.php [L]
RewriteCond %{REQUEST_URI} !^/index.php/admin/
RewriteCond %{REQUEST_URI} !^/index.php/admin
RewriteRule ^index.php/(.*) /$1 [R=301,QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment