Forum: Ruby on Rails .htaccess

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Abhishek shukla (Guest)
on 2008-11-12 10:08
(Received via mailing list)
Hello friends.

I have hosted my application on bluehost and from cpanel i created a
rails application which is generated inside my public_html folder.

~/public_html/myapp

then i followed the following steps

ln -s ~/public_html/myapp/public myapplive

any edited my .htaccess file like
RewriteBase /myapplive
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

So now everything is working fine but the All my links are displaying
http://www.domainname.com/myapplive/controller/action

So i Just want my url should be
http://www.domainname.com/controller/action

any suggestion?

thanks
Abhi
This topic is locked and can not be replied to.