Advertisement
Guest User

Untitled

a guest
May 5th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Route::get('/', function () { return view('welcome'); });
  2.  
  3. <IfModule mod_rewrite.c>
  4. <IfModule mod_negotiation.c>
  5. Options -MultiViews
  6. </IfModule>
  7.  
  8. RewriteEngine On
  9.  
  10. # Redirect Trailing Slashes If Not A Folder...
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteRule ^(.*)/$ /$1 [L,R=301]
  13.  
  14. # Handle Front Controller...
  15. RewriteCond %{REQUEST_FILENAME} !-d
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteRule ^ index.php [L]
  18.  
  19. # Handle Authorization Header
  20. RewriteCond %{HTTP:Authorization} .
  21. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  22. </IfModule>
  23.  
  24. Options +FollowSymLinks
  25. RewriteEngine On
  26.  
  27. RewriteCond %{REQUEST_FILENAME} !-d
  28. RewriteCond %{REQUEST_FILENAME} !-f
  29. RewriteRule ^ index.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement