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.!

3 comments:

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

Renu said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops Training in electronic city