Skip to content

Instantly share code, notes, and snippets.

@ivanfgm
Last active June 26, 2017 22:05
Show Gist options
  • Save ivanfgm/d6fa3af5b2526ab6cd3967b95a11d89b to your computer and use it in GitHub Desktop.
Save ivanfgm/d6fa3af5b2526ab6cd3967b95a11d89b to your computer and use it in GitHub Desktop.
htaccess file that redirects all traffic to index.php in apache.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment