Skip to content

Instantly share code, notes, and snippets.

@swuppio
Created December 5, 2017 14:14
Show Gist options
  • Save swuppio/e25912c56c81e229464dd366324eb16c to your computer and use it in GitHub Desktop.
Save swuppio/e25912c56c81e229464dd366324eb16c 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