Skip to content

Instantly share code, notes, and snippets.

@swuppio
Created February 16, 2017 19:55
Show Gist options
  • Save swuppio/0650414bcede875085819cdf3c5774e4 to your computer and use it in GitHub Desktop.
Save swuppio/0650414bcede875085819cdf3c5774e4 to your computer and use it in GitHub Desktop.
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment