views:

109

answers:

3

What should my .htaccess file include in order to work in rails this is what I have now and I want to make sure its correct:

AddHandler fastcgi-script .fcgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

A: 

The way to make sure that something is correct is to test it operationally. Just sayin'.

chaos
Your right but the errors that I'm getting im not sure if they are from the .htaccess file being incorrect or some other issue. I've looked every where for a default .htaccess file for ruby and I can't find one. Why not have it on stackoverflow. For other people like myself to find. Just sayin'. :)
IBarnes
You should probably ask about the errors you're getting rather than asking us to analyze your system components in a vacuum. :)
chaos
+2  A: 

You can set up a new temporary rails application skeleton using the rails command and compare your existing .htaccess file to the new .htaccess file generated there.

Schrockwell
A: 
IBarnes