2012-12-02 36 views
0

我有一個像下面的目錄結構。fuelphp htaccess多個應用程序目錄不工作

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> 

但這不工作......如果這是正確的.htaccess那麼請告訴我,如果有任何其他的服務器端的問題。我正在CentOs服務器上設置它。

回答

0

我有我的目錄訪問問題,我需要更新訪問內容目錄(domain.com)在Apache配置文件(httpd.conf)

0

您可能需要RewriteBase /abc來處理子文件夾。