404回,燃料PHP安装时的.htaccess [英] 404 return, when Setup .htaccess in fuel php

查看:98
本文介绍了404回,燃料PHP安装时的.htaccess的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到问题时,我想安装福乐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>

这篇关于404回,燃料PHP安装时的.htaccess的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆