Advertisement
Guest User

.htaccess

a guest
Apr 26th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <IfModule mod_rewrite.c>
  2.     <IfModule mod_negotiation.c>
  3.         Options -MultiViews
  4.     </IfModule>
  5.  
  6.     RewriteEngine On
  7.  
  8.     # Force SSL
  9.     RewriteCond %{HTTPS} off
  10.     RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  11.  
  12.    
  13.     # Redirect Trailing Slashes If Not A Folder...
  14.     RewriteCond %{REQUEST_FILENAME} !-d
  15.     RewriteRule ^(.*)/$ /$1 [L,R=301]
  16.  
  17.     # Handle Front Controller...
  18.     RewriteCond %{REQUEST_FILENAME} !-d
  19.     RewriteCond %{REQUEST_FILENAME} !-f
  20.     RewriteRule ^ index.php [L]
  21.  
  22.     # Handle Authorization Header
  23.     RewriteCond %{HTTP:Authorization} .
  24.     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  25.    
  26.  
  27. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement