Skip to content

Instantly share code, notes, and snippets.

@oliworx
Created April 7, 2015 23:56
Show Gist options
  • Save oliworx/62566e27f7dbff9ec439 to your computer and use it in GitHub Desktop.
Save oliworx/62566e27f7dbff9ec439 to your computer and use it in GitHub Desktop.
.htaccess to redirect all requests to index.php with original request as query string
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L,PT]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment