Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. RewriteEngine On
  2.  
  3. # Redirect Trailing Slashes If Not A Folder...
  4. RewriteCond %{REQUEST_FILENAME} !-d
  5. RewriteRule ^(.*)/$ /$1 [L,R=301]
  6.  
  7. # Handle Front Controller...
  8.  
  9. Options -MultiViews
  10. RewriteEngine On
  11.  
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteRule ^ index.php [L]
  15.  
  16. # Handle Authorization Header
  17. RewriteCond %{HTTP:Authorization} .
  18. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  19.  
  20. RewriteEngine On
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteRule ^(.*)/$ /$1 [L,R=301]
  23.  
  24. RewriteCond %{REQUEST_URI} !(.css|.ttf|.woff|.woff2|.js|.png|.jpg|.gif|robots.txt)$ [NC]
  25.  
  26. RewriteCond %{REQUEST_FILENAME} !-d
  27. RewriteCond %{REQUEST_FILENAME} !-f
  28. RewriteRule ^ index.php [L]
  29.  
  30. RewriteCond %{HTTP:Authorization} .
  31. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  32.  
  33. RewriteCond %{REQUEST_URI} !^/public/
  34. RewriteRule ^(css|js|images|fonts)/(.*)$ public/$1/$2 [L,NC]
  35.  
  36. RewriteCond %{THE_REQUEST} ^.*/index.php
  37. RewriteRule ^index.php/(.*)$ /$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement