我有一个CakePHP备份,我想在本地xampp设置上进行设置。我从它运行平稳的服务器备份它。当我想使用localhost打开时,它显示/ app/webroot /目录列表。仅在cakephp设置中列出目录
我使用Windows 7与xampp。我已经开始mod_rewrite了。
我的.htaccess文件有
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
DirectoryIndex /front/default.php
</IfModule>
我粘贴的根.htaccess文件。 /应用程序/根目录具有 RewriteEngine叙述在 的RewriteCond%{REQUEST_FILENAME}!-d 的RewriteCond%{REQUEST_FILENAME}!-f 重写规则^(。*)$的index.php [QSA,L] –