anggagewor

Untitled

Apr 21st, 2016
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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. RewriteRule ^(.*)/$ /$1 [L,R=301]
  11.  
  12. # Handle Front Controller...
  13. RewriteCond %{REQUEST_FILENAME} !-d
  14. RewriteCond %{REQUEST_FILENAME} !-f
  15. RewriteRule ^ index.php [L]
  16.  
  17. # Handle Authorization Header
  18. RewriteCond %{HTTP:Authorization} .
  19. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  20.  
  21. RewriteCond %{HTTPS} off
  22. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  23. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment