对不起,我做了很多搜索,但没有找到解决问题的方法.
当我想在子文件夹中安装我的Cakephp应用程序时,使用默认的cakephp htaccess文件设置将无法在我的域上运行,而所有内容都适用于localhost(xampp)
target => http://mydomain.com/mycakeapp
安装需要3个htaccess文件:
root .htaccess
#.htaccess in root RewriteEngine on RewriteBase /mycakeapp RewriteRule ^$ app/webroot/ [L] RewriteRule (.) app/webroot/$1 [L]在应用程序.htaccess
RewriteEngine on RewriteBase /mycakeapp RewriteRule ^$ app/webroot/ [L] RewriteRule (.) app/ webroot/$1 [L]在webroot .htaccess中
RewriteEngine On RewriteBase /mycakeapp RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L]在cakephp文档和使用这些htaccess文件之后,我得到了error500结果.使用RewriteBase /而不是/ mycakeapp会抛出404错误页面.
php是5.4版本如何解决这个问题?非常感谢您的帮助 !问候