Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- # Redirect Trailing Slashes If Not A Folder...
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/$ /$1 [L,R=301]
- # Handle Front Controller...
- Options -MultiViews
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [L]
- # Handle Authorization Header
- RewriteCond %{HTTP:Authorization} .
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/$ /$1 [L,R=301]
- RewriteCond %{REQUEST_URI} !(.css|.ttf|.woff|.woff2|.js|.png|.jpg|.gif|robots.txt)$ [NC]
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [L]
- RewriteCond %{HTTP:Authorization} .
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- RewriteCond %{REQUEST_URI} !^/public/
- RewriteRule ^(css|js|images|fonts)/(.*)$ public/$1/$2 [L,NC]
- RewriteCond %{THE_REQUEST} ^.*/index.php
- RewriteRule ^index.php/(.*)$ /$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement