Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 多应用程序目录的fuelphp htaccess不工作_.htaccess_Mod Rewrite_Fuelphp - Fatal编程技术网

.htaccess 多应用程序目录的fuelphp htaccess不工作

.htaccess 多应用程序目录的fuelphp htaccess不工作,.htaccess,mod-rewrite,fuelphp,.htaccess,Mod Rewrite,Fuelphp,我有一个如下的目录结构 public_html/ /abc/ /xyz/ /pqr/ 每个目录中都有一个index.php,即abc、xyz、pqr 现在,无论何时出现类似于domain.com/abc/def/ghi的请求,都应该重写为domain.com/abc/index.php/def/ghi domain.com/xyz/def/ghi => domain.com/xyz/index.php/def/ghi domain.com/pqr

我有一个如下的目录结构

public_html/
       /abc/
       /xyz/
       /pqr/
每个目录中都有一个index.php,即abc、xyz、pqr

现在,无论何时出现类似于
domain.com/abc/def/ghi
的请求,都应该重写为
domain.com/abc/index.php/def/ghi

domain.com/xyz/def/ghi => domain.com/xyz/index.php/def/ghi
domain.com/pqr/def/ghi => domain.com/pqr/index.php/def/ghi
.htaccess文件应该是什么?它应该放在哪里

我在每个目录(abc、xyz、pqr)中都有.htaccess文件,如下所示,但它不起作用。它显示404页未找到。请指导我处理所有这些重写条件

<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[L]

但这不起作用。。。如果这是正确的。那么请告诉我是否有任何其他服务器端问题。我正在CentOs服务器上进行设置。

您可能需要一个
重写库/abc
来处理子文件夹。

我的目录访问有问题,需要更新apache配置文件(httpd.conf)中内容目录(domain.com)的访问权限