Skip to content

Instantly share code, notes, and snippets.

@poloey
Created January 23, 2018 08:21
Show Gist options
  • Save poloey/6ee567dc946115b037738e822bffff65 to your computer and use it in GitHub Desktop.
Save poloey/6ee567dc946115b037738e822bffff65 to your computer and use it in GitHub Desktop.
.htaccess for clean routing
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment