.htaccess 808 B

12345678910111213141516171819202122232425
  1. # General Apache options
  2. AddHandler fastcgi-script .fcgi
  3. AddHandler cgi-script .cgi
  4. Options +FollowSymLinks +ExecCGI
  5. # Redirect all requests not available on the filesystem to Rails
  6. # By default the cgi dispatcher is used which is very slow
  7. #
  8. # For better performance replace the dispatcher with the fastcgi one
  9. #
  10. # Example:
  11. # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  12. RewriteEngine On
  13. RewriteRule ^$ index.html [QSA]
  14. RewriteRule ^([^.]+)$ $1.html [QSA]
  15. RewriteCond %{REQUEST_FILENAME} !-f
  16. RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
  17. # In case Rails experiences terminal errors
  18. # Instead of displaying this message you can supply a file here which will be rendered instead
  19. #
  20. # Example:
  21. # ErrorDocument 500 /500.html
  22. ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"