Guest User

Untitled

a guest
Nov 14th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. require __DIR__.'/../vendor/autoload.php';
  2. $app = require_once __DIR__.'/../bootstrap/app.php';
  3.  
  4. <IfModule mod_rewrite.c>
  5. <IfModule mod_negotiation.c>
  6. Options -MultiViews
  7. </IfModule>
  8.  
  9. RewriteEngine On
  10.  
  11. # Redirect Trailing Slashes If Not A Folder...
  12. RewriteRule ^(.*)/$ /$1 [L,R=301]
  13.  
  14.  
  15. # Handle Front Controller...
  16. RewriteCond %{REQUEST_FILENAME} !-d
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteRule ^ index.php [L]
  19.  
  20. # Handle Authorization Header
  21. RewriteCond %{HTTP:Authorization} .
  22. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  23. </IfModule>
Add Comment
Please, Sign In to add comment