Skip to content

Instantly share code, notes, and snippets.

@osde8info
Last active December 17, 2015 07:18
Show Gist options
  • Save osde8info/5571496 to your computer and use it in GitHub Desktop.
Save osde8info/5571496 to your computer and use it in GitHub Desktop.
htaccess for index.php
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^\./]*[^/])$ $1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?action=$1 [QSA,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment