IIS7のweb.configの設定で困っております
やりたいこと
①hoge.com/index.html
↓
hoge.com
に
併せて
②hoge.com/hoge/index.html
↓
hoge.com/hoge/
に
更に
③hoge.com/hoge/hoge_index.html
はそのままにしたい
web.configで
<rule name="index.htmlなしで統一" stopProcessing="true"> <match url="^(.*)/index.html$" /> <action type="Redirect" url="{R:1}" redirectType="Permanent" /> </rule> とすると
②、③は可能だが
①は
hoge.com/index.html
となる
①~③全て可能にするにはどういった記述をしたら良いですか?
ちなみに
<rule name="index.htmlなしで統一" stopProcessing="true"> <match url="^(.*)index.html$" /> <action type="Redirect" url="{R:1}" redirectType="Permanent" /> </rule>
とすると
①②は可能ですが
③が
hoge.com/hoge/hoge_
となる。。。。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。