Thank you very much philip, I have also tried this but it seems I have
a problem with my dispatch.cgi (I am using fastcgi to deploy).

When I am trying I get this error
"Routing Error

No route matches "/dispatch.fcgi" with {:method=>:get}"

Here is my full .htaccess:

AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

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


RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^"mydomain".com [NC]
RewriteRule ^(.*)$ http://www."mydomain".com/$1 [L,R=301]


ErrorDocument 500 /500.html

#ErrorDocument 500 "

Any other suggestions? Thank you
-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to