Tuesday, October 19, 2010

ActionController::RoutingError No route matches .html

Added extra .html to URL in rails.

If you have added following rewiterules in apache configuration Or added in your .htaccess in your public. Basically its required for the FastCGI. if you run fastCGI server then its need, but if you running Passenger
should be remove
---------------------------------------
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
----------------------------------------

So solution is please remove that from apache config Or remove .htaccess for the passenger only. njoy.!

4 comments:

ClassicDresses said...

Once again great post. You seem to have a good understanding of these themes.When I entering your blog,I felt this . Come on and keep writting your blog will be more attractive. To Your Success!
my computer has something wrong!
maybe it does't update for a long time.

Classic Dresses
Classic Bridesmaid Dresses
Wedding Dresses with Sleeves

Shrikant Lokhande said...

Thank you for comment, I saw your links good shopping sites you have.
1. Are you using magento or its custom?
2. which language/technology you are using for development.

Unknown said...

Thank you for blog.You seem to have a good understanding of these themes.When I entering your blog,I felt this . Come on and keep writting your blog will be more attractive-----------------
WOW Gold Buy WOW Gold Cheap WOW Gold RS Gold Runescape Gold

cartier said...

Your blog article is very intersting and fanstic,at the same time the blog theme is unique and perfect,great job.To your success.
-----------------
RS Gold Runescape Gold Buy WOW Gold