.htaccess configuration

hello,

i use shared hosting with apache and .htacces file for configuration.

.htaccess file is places in the rails project folder:


RewriteEngine On
RewriteRule ^$ public/index.html [L]

RewriteCond %{REQUEST_URI} !^/project/public
RewriteRule ^(.*)$ public/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/dispatch.fcgi/$1 [QSA,L]

Everything work fine except that, I can’t call the controller like this:
http://xxxxxxxxx.net/project/controller

Error Message is:

The page you were looking for doesn’t exist.
You may have mistyped the address or the page may have moved.

But i can call the controller like this:
http://xxxxxxxxx.net/project/public/controller

how can i solve the problem?

thanx
otis