問題を引き起こしているいくつかの書き換えルールをデバッグするために、書き換えログを有効にしたいと思います。そこで、httpd.confファイルの最後に次の行を追加しました。
<IfModule mod_rewrite.c>
RewriteLog "/logs/rewrite.log"
RewriteLogLevel 4
</IfModule>
次に私がしたことは、Apacheを再起動することでした。ただし、エラーが発生し、起動しません。これは私がXAMPPコントロールパネルで得るものです:
13:14:56 [Apache] Error: Apache shutdown unexpectedly.
13:14:56 [Apache] This may be due to a blocked port, missing dependencies,
13:14:56 [Apache] improper privileges, a crash, or a shutdown by another method.
13:14:56 [Apache] Check the "/xampp/apache/logs/error.log" file
13:14:56 [Apache] and the Windows Event Viewer for more clues
ただし、 error.logには何の手がかりもありません。実際、このエラーが発生した場合、行は生成されません。
また、絶対パスを使用するようにRewriteLog行を変更してみました。
RewriteLog "c:\xampp\apache\logs\rewrite.log"
手伝っていただけませんか?