r7z

laravel .htaccess

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