我在subdirecotry www.siteb.com/rexona安装CI笨没有输入文件中指定的错误
我里面www.siteb.com/rexona的.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /rexona
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#‘system’ can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn’t true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
在config.php:
$config['index_page'] = '';
$config['base_url'] = '';
$config['uri_protocol'] = 'AUTO';
每当我尝试访问控制器我得到没有输入文件中指定。但它确实加载了默认控制器,但我无法访问默认控制器中的任何方法。
有什么想法? 谢谢。
如果我将代码移动到PHP作为Apache模块运行的服务器,这仍然可行吗? – 2012-11-25 15:50:42
@Peter如果'uri_protocol'configuration设置为AUTO,我会怀疑它的确如此。但是,当服务器使用另一种类型的实现时,我不建议使用特定于服务器设置。 – Repox 2012-11-25 15:54:37
谢谢,它在现场托管和错误相关的错误错误无法加载动态库消失 – 2015-05-24 09:47:33