index.html
スラッシュで終わる URLに追加する mod_rewrite ルールは何でしょうか? ルールは、存在するすべてのクエリ文字列を保持する必要があります。ファイルがファイル システムに物理的に存在しないDirectoryIndex
ため、ディレクティブを使用できませんが、基になる Web サイト フレームワークで必要とされます。index.html
URL の例と目的の結果を以下に示します。
http://example.com/ -> http://example.com/index.html
http://example.com/?a=1 -> http://example.com/index.html?a=1
http://example.com/foo/ -> http://example.com/foo/index.html
http://example.com/foo/?b=2 -> http://example.com/foo/index.html?b=2
http://example.com/foo/index.html -> http://example.com/foo/index.html
http://example.com/foo/index.html?c=3 -> http://example.com/foo/index.html?c=3