当我想在我的电脑上安装 fule php 时遇到问题,问题是当我设置 .htaccess 时,我找不到 404 页面,我在 apache 中设置了 modrewrite 就可以了。
这是我的 .htaccess 文件
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /public
RewriteRule ^(/)?$ index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我将我的代码放在目录 htdocs/myproject 中。
这是 myproject 目录的路径
myproject/
.htaccess
fuel/
app/
core/
packages/
public/
assets/
index.php
oil
我现在不知道我只是按照这一步会发生什么,但我没有得到正确的结果。