0
我試圖安裝在服務器上 我的CakePHP的工作。設置CakePHP的購買GoDaddy的共享服務器安裝/服務器
當我去我的網站http://xyz.com/cake/ 我得到404錯誤
The requested URL /xyz/cake/app/webroot/ was not found on this server.
anyhelp plz ??
感謝,
薩蒂什南比亞
我試圖安裝在服務器上 我的CakePHP的工作。設置CakePHP的購買GoDaddy的共享服務器安裝/服務器
當我去我的網站http://xyz.com/cake/ 我得到404錯誤
The requested URL /xyz/cake/app/webroot/ was not found on this server.
anyhelp plz ??
感謝,
薩蒂什南比亞
您需要設置正確的RewriteBase
在.htaccess
如果你要運行一個子目錄裏面蛋糕。
/xyz/cake/.htaccess
和/xyz/cake/webroot/.htaccess
(假設/xyz/cake
是Cake和您的應用程序目錄的路徑)需要更新。
/xyz/cake/.htaccess:
<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>
完善,感謝您的幫助 – 2012-04-17 03:27:03