2012-05-10 35 views
1

我有一个Kohana应用程序运行在Web根目录下,一切工作正常。但是,当我尝试使用非kohana PHP代码向根添加子文件夹时,我无法访问它。 Kohana中仍试图找到该文件的路径..访问非Kohana php文件

实施例:

  • 的public_html
    • 应用
    • 模块
    • 子目录
      • 的index.php
      • 测试。 html

如果我试图访问/子文件夹中,我得到以下错误:

类controller_subfolder不存在

但是,如果我尝试访问/subfolder/test.html它工作正常。

我的.htaccess文件是默认的:

# Turn on URL rewriting 
RewriteEngine On 

# Installation directory 
RewriteBase/

# Protect hidden files from being viewed 
<Files .*> 
    Order Deny,Allow 
    Deny From All 
</Files> 

# Protect application and system files from being viewed 
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L] 

# Allow any files or directories that exist to be displayed directly 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

# Rewrite all other URLs to index.php/URL 
RewriteRule .* index.php/$0 [PT] 
+0

你可以发布你的bootstrap.php路由吗? – ephemeron

回答