2012-02-14 5 views
0

IIS7のWindows 2008のサーバー IISはmodual .NET 4IIS7のURLのディレクトリ全体のために書き換え、ストリッピングindex.aspx

非常に簡単な質問を書き換え、私は書き換えmodualを使用して、それはかなり良い見つけるが、私は助けを必要としていますルールを設定する私はちょうど正しいとは思わない。

http://www.vinylsearcher.com/dance-music/downtempo-records/

基準: それはのように終わるようなダンス・ミュージックフォルダにすべての要求は、エンドオフindex.aspxを取り除く必要があります。

http://www.vinylsearcher.com/dance-music/downtempo-records/

ない

http://www.vinylsearcher.com/dance-music/downtempo-records/index.aspx

また、以下の対象になる必要があります:

http://www.vinylsearcher.com/dance-music/downtempo-records/mostexpensive/index.aspx

に書き換える必要があります:私はいくつかの助けをいただければ幸い界でのラウンドとラウンドを行っている

http://www.vinylsearcher.com/dance-music/downtempo-records/mostexpensive/

ありがとう。

答えて

1

/defaultDocumentセクションの下にweb.configファイルに以下を追加:

<rewrite> 
    <rules> 
     <rule name="Imported Rule 1" stopProcessing="true"> 
     <match url=".*" ignoreCase="false" /> 
     <conditions> 
     <add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" /> 
     <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> 
     <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> 
     </conditions> 
     <action type="Rewrite" url="index.aspx" /> 
     </rule> 
    </rules> 
</rewrite> 
関連する問題