Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. <IfModule mod_negotiation.c>
  3. Options -MultiViews
  4. </IfModule>
  5.  
  6. RewriteEngine On
  7. RewriteBase /
  8. # change above to your site i.e., RewriteBase /whatever/public/
  9.  
  10. # Redirect Trailing Slashes...
  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. </IfModule>
  18.  
  19. <IfModule mod_rewrite.c>
  20. <IfModule mod_negotiation.c>
  21. Options -MultiViews
  22. # </IfModule>
  23.  
  24. # RewriteEngine On
  25.  
  26. # # Redirect Trailing Slashes...
  27. # RewriteRule ^(.*)/$ /$1 [L,R=301]
  28.  
  29. # # Handle Front Controller...
  30. # RewriteCond %{REQUEST_FILENAME} !-d
  31. # RewriteCond %{REQUEST_FILENAME} !-f
  32. # RewriteRule ^ index.php [L]
  33. # </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement