.htaccess 596 B

1234567891011121314151617181920212223
  1. #Options +FollowSymLinks +ExecCGI
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. # uncomment the following line, if you are having trouble
  5. # getting no_script_name to work
  6. #RewriteBase /
  7. # we skip all files with .something
  8. #RewriteCond %{REQUEST_URI} \..+$
  9. #RewriteCond %{REQUEST_URI} !\.html$
  10. #RewriteRule .* - [L]
  11. # we check if the .html version is here (caching)
  12. RewriteRule ^$ index.html [QSA]
  13. RewriteRule ^([^.]+)$ $1.html [QSA]
  14. RewriteCond %{REQUEST_FILENAME} !-f
  15. # no, so we redirect to our front web controller
  16. RewriteRule ^(.*)$ index.php [QSA,L]
  17. </IfModule>