サーバーで CakePHP の作業をセットアップしようとしています 購入した godaddy 共有サーバー
自分のサイトhttp://xyz.com/cake/ にアクセスすると、404 エラーが発生します
The requested URL /xyz/cake/app/webroot/ was not found on this server.
何か助けてください??
ありがとう、
サティシュ
サーバーで CakePHP の作業をセットアップしようとしています 購入した godaddy 共有サーバー
自分のサイトhttp://xyz.com/cake/ にアクセスすると、404 エラーが発生します
The requested URL /xyz/cake/app/webroot/ was not found on this server.
何か助けてください??
ありがとう、
サティシュ
サブディレクトリ内で Cake を実行する場合はRewriteBase
、正しい を設定する必要があります。.htaccess
/xyz/cake/.htaccess
と( Cake とアプリのディレクトリへのパスであると/xyz/cake/webroot/.htaccess
仮定) の両方を更新する必要があります。/xyz/cake
/xyz/cake/.htアクセス:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /xyz/cake/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
/xyz/cake/webroot/.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /xyz/cake/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>