ローカル マシンに CakePHP installad のインスタンスがあります。
WAMP を使用して PHP を実行し、httpd.conf を次のように更新しました。
Listen 8080
ServerName localhost:8080
ポート 8080 で必要なので、使用している他のアプリに干渉しません。
問題は、ブラウザに localhost:8080/application と入力すると、localhost/application にリダイレクトされ、空白の画面が表示されることです。
関連する可能性のある 2 つの .htaccess ファイルを次に示します。
1- アプリケーションのルート フォルダー内:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
2 - アプリケーション/アプリ内
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /application/app/webroot
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/(app/webroot/)?(img|css|js)/(.*)$
RewriteRule ^(.*)$ index.php [QSA,L]
ErrorDocument 404 /404-not-found
私はいくつかの調査を行いましたが、私の状況に固有のものを見つけることができません。
何が起こっているのか、どうすればこれを修正できるのか知っている人はいますか?