我遇到问题时,我想安装福乐PHP在我的电脑,问题是,当我设置的.htaccess我是让没有发现404页,我已经安装modrewrite在Apache中还是可以的。
i'm having problem when i want to install fule php in my pc, the problem is when i'm setup .htaccess i'm get 404 page not found, i have setup modrewrite in apache it's OK.
这是我的.htaccess文件
this is my .htaccess file
<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>
我是代替我的code。在目录中的htdocs / myproject的。
i'm place my code in directory htdocs/myproject.
这是myproject的目录路径
this is path of myproject directory
myproject/
.htaccess
fuel/
app/
core/
packages/
public/
assets/
index.php
oil
我现在不怎样就怎样,我只是按照这一步但我没有得到正确的结果。
i don't now what happen i just following this step but i don't get the right result.
我可以改变htaccess的像这样的解决...感谢zvaya..you帮助我..
i can solve with change htaccess like this...thanks zvaya..you help me ..
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /myproject/public
RewriteRule ^(/)?$ index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>