Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 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...
  9. RewriteRule ^(.*)/$ /$1 [L,R=301]
  10.  
  11. # Handle Front Controller...
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteRule ^ index.php [L]
  15.  
  16. location / {
  17. rewrite ^/(.*)/$ /$1 redirect;
  18. if (!-e $request_filename){
  19. rewrite ^(.*)$ /index.php break;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement