public
Railsの自分のフォルダーを指すリンクをいくつかリダイレクトしたいと考えています。
例えば:
http://site.com/example
にリダイレクトする必要がありますhttp://site.com/example/index.html
パブリック フォルダーであるコンテンツに対してのみこれを実行したいと考えています。
config/routes.rb ファイルでこれを試しました:
match "*pages" => redirect("/%{pages}/index.html")
しかし、リダイレクトループに入ります。そのため、http://site.com/example
リダイレクトhttp://site.com/example/index.html
先もリダイレクト先などにリダイレクトさhttp://site.com/example/index.html/index.html
れます。