Guest User

Untitled

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