Guest User

Untitled

a guest
Jul 13th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Options +FollowSymLinks +ExecCGI
  2.  
  3.  
  4.  
  5.  
  6. <IfModule mod_rewrite.c>
  7. RewriteEngine On
  8.  
  9. # uncomment the following line, if you are having trouble
  10. # getting no_script_name to work
  11. RewriteBase /
  12.  
  13. # we skip all files with .something
  14. #RewriteCond %{REQUEST_URI} \..+$
  15. #RewriteCond %{REQUEST_URI} !\.html$
  16. #RewriteRule .* - [L]
  17.  
  18. # we check if the .html version is here (caching)
  19. RewriteRule ^$ index.html [QSA]
  20. RewriteRule ^([^.]+)$ $1.html [QSA]
  21. RewriteCond %{REQUEST_FILENAME} !-f
  22.  
  23. # no, so we redirect to our front web controller
  24. RewriteRule ^(.*)$ index.php [QSA,L]
  25. </IfModule>
Add Comment
Please, Sign In to add comment