URLからindex.phpを削除したい、私はwordpressとiis7を使用しています。 はどのように私はこのiis7のwordpress URLからindex.phpを削除する
答えて
もうかなり迅速な解決を行うことができ、あなたは、Windows Azureのウェブサイトを使用する状況では、あなたのウェブサイトにログインし、ちょうどweb.configファイルas this article pointed outを作成するためにMicrosoft WebMatrix
を使用することです。それはそれを解決する。 URL Rewrite extension
などをインストールする必要はありません。 MS Webmatrixは問題を簡単に解決するようです。
使用このweb.configファイル
(web.configファイルには、Apache Webサーバにファイルを.htaccessファイルにするIISと同等である。これは、ルートフォルダに格納されています。何も存在しない場合、あなたは1を作成する必要があります。 )パーマリンクページで次に
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<!-- Set the default document -->
<files>
<remove value="index.php" />
<add value="index.php" />
</files>
</defaultDocument>
<httpErrors errorMode="Detailed"/>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
、「カスタム構造」を設定し、この回答のどれがあなたの問題を解決し/%postname%/
はどこですか?web.config –
web.configは、apache webserversの.htaccessファイルに相当するIISです。これはルートフォルダにあります。存在しない場合は、作成する必要があります。 – Binod
価値を与えますか? –