Skip to content

Instantly share code, notes, and snippets.

/.htaccess Secret

Created January 8, 2016 00:38
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 anonymous/0fbd71ca79a8e21e7d23 to your computer and use it in GitHub Desktop.
Save anonymous/0fbd71ca79a8e21e7d23 to your computer and use it in GitHub Desktop.
RewriteEngine on
RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(images|photos|css|js|robots\.txt)
RewriteRule ^(.*)$ /index.php?url=$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment