Htaccess file by default.

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

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

0


a source to share


3 answers


This is the one I used that worked. Just start any other you need for rubies on rails with fcgi (FastCGI)



AddHandler fastcgi-script.fcgi
AddHandler cgi-script.cgi
Parameters + FollowSymLinks + ExecCGI
RewriteEngine On
RewriteRule ^ $ index.html [QSA]
RewriteRule ^ ([^.] +) $$ 1.htAME [QSA]
RewriteCond% {REQUEST_FIL ! -f
RewriteRule ^ (. *) $ Dispatch.fcgi [QSA, L]

+1


a source


You can create a new temporary rails application skeleton using the command rails

and compare the existing file .htaccess

with the new .htaccess

file created there.



+2


a source


The way to make sure something is correct is to test if it works. Just say.

0


a source







All Articles