1

Windows と WAMP で PHP プロジェクトをセットアップしようとしていますが、非常に奇妙な障害に遭遇しました。

私の .htaccess には、次のキャッチオール リダイレクトがあります。

RewriteRule ^(.*)$ index.php?$1 [PT,L]

Linux と Apache では、これは正常に機能します。たとえば、 /some_alias/items は、それ以降のページ要求を処理する index.php ファイルに正常にリダイレクトされます。

ただし、Windows では、 http://xx.xx.xx.xx/some_alias/indexにアクセスすると次のようになります。

Not Found

The requested URL /Users/username/workspace/project/some_alias/index.php was not found on this server.

私のエイリアスファイルは次のとおりです。

Alias /some_alias/ "c:/users/username/workspace/project/some_alias/" 
<Directory "c:/users/username/workspace/project/some_alias/">

AllowOverride all
Order allow,deny
Allow from all
</Directory>

どうしたの?

4

0 に答える 0