I want to redirect some links that point to my public
folder in Rails.
For example:
http://site.com/example
should redirect to http://site.com/example/index.html
I only want to do this for the content that is my public folder.
I tried this in the config/routes.rb file:
match "*pages" => redirect("/%{pages}/index.html")
But it enters a redirect loop.
So http://site.com/example
redirects to to http://site.com/example/index.html
which also redirects to http://site.com/example/index.html/index.html
and so on.