URLの書き換えについて少し助けが必要です。私のphpサイトはWindowsサーバーで実行されています。カテゴリと記事の両方が次のようになるように、URL を書き直そうとしています。
hxxp://domain.com/
カテゴリ名 hxxp://domain.com/記事タイトル
これは私がweb.configに持っているものです。カテゴリでは正常に機能していますが、記事では機能していません。何が間違っていますか?
<rule name="category">
<match url="^([_0-9a-z-]+)" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="category.php?slug={R:1}" />
</rule>
<rule name="article">
<match url="^([_0-9a-z-]+)" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="article.php?slug={R:1}" />
</rule>