私はhttp://learn.iis.net/page.aspx/806/seo-rule-templates/に従っています。これは、IIS7でSEOに優しいURLを作成するためのほぼ完全なガイドです。IIS7でURLを書き換えよう
でも、私は一つの問題があります。
私はwww.domain.com/contact/
を書き換えるためのルールを作成する場合、私はweb.configファイルで取得する:
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="?p={R:1}" />
</rule>
をしかし、その後、私はwww.domain.com/contact/send/
を行うことはできません。私はwww.domain.com/contact/send/
を書き換えるためのルールを作成する場合
私はweb.configファイルで取得する:
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^([^/]+)/([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="?p={R:1}&a={R:2}" />
</rule>
をしかし、私は私が見ることができないwww.domain.com/contact/
ルールの両方がそうすることができません任意のスクリプト、私の/scripts/
、/css/
および/images/
フォルダからのcss ogイメージ。
上記の3つのフォルダとANDとNOTの両方に一致するルールを作成するにはどうすればよいですか?
誰も私にこれに答えることができますか? :/ – Behrens