我在子网站www.siteb.com/rexona中安装了CI
原文链接:https://www.f2er.com/php/136536.html我的.htaccess在www.siteb.com/rexona内:
<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';
每当我尝试访问控制器时,我都没有指定输入文件.但它确实加载了默认控制器,但我也无法访问默认控制器中的任何方法.
有什么想法吗?
谢谢.