私はこれに数時間取り組んできました。Codeigniter フレームワークを Windows Azure Web サイトに配置しようとしています。PHP はうまく機能しますが、この書き換えルールを正しく機能させることができないようです。これは私のweb.config
ファイルです。
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rule" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
ファイルを Windows Azure Web サイトにアップロードし、ページを実行すると、次のindex.php
ように返されますHTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request
。私は Apache のバックグラウンドを持っています。Windows IIS は初めてです。どんな情報でも役に立ちます。ありがとうございます。