Skip to content

Instantly share code, notes, and snippets.

@adrixvoid
Created August 19, 2020 13:50
Show Gist options
  • Save adrixvoid/ae6cdccdb71f669e3d4bcd57916d4ece to your computer and use it in GitHub Desktop.
Save adrixvoid/ae6cdccdb71f669e3d4bcd57916d4ece to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Allow Authorization Headers
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment