[英]Accessing non-Kohana php files
我有一个Kohana应用程序在网络根目录中运行,并且一切正常。 但是,当我尝试使用非kohana PHP代码将子文件夹添加到根目录时,无法访问它。 Kohana仍在尝试查找文件的路径。
例:
如果我尝试访问/ subfolder,则会出现以下错误:
类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]
也许apache未配置为在DirectoryIndex中提供index.php?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.