.htaccess 613 B

12345678910111213141516171819202122
  1. Options +FollowSymLinks +ExecCGI
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. # we skip all files with .something
  5. RewriteCond %{REQUEST_URI} \..+$
  6. RewriteCond %{REQUEST_URI} !\.html$
  7. RewriteRule .* - [L]
  8. # we check if the .html version is here (caching)
  9. RewriteRule ^$ index.html [QSA]
  10. RewriteRule ^([^.]+)$ $1.html [QSA]
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. # no, so we redirect to our front web controller
  13. RewriteRule ^(.*)$ index.php [QSA,L]
  14. </IfModule>
  15. # big crash from our front web controller
  16. ErrorDocument 500 "<h2>Application error</h2>symfony applicationfailed to start properly"