publicRailsの自分のフォルダーを指すリンクをいくつかリダイレクトしたいと考えています。
例えば:
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れます。