在codeigniter应用程序的托管服务器上,子目录中的控制器不可访问


controller in sub-directory not accessible on hosting server in codeigniter application

我发现很难访问托管服务器上子目录中的控制器/函数,但它在localhost上运行得很好这是我的文件夹结构父域httpdocs厘米.htaccess应用控制器页面(其控制器超出子目录)admin(其子目录)用户(管理子目录中的控制器不可访问)如果我通过url:abc.com/gms/admin/user/test访问它,它会给我未找到在此服务器上找不到请求的文档。唯一可访问的东西是abc.com/gms(它访问页面/索引控制器/函数)任何其他URL都会给我找不到错误来自.htaccess 的代码

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /gms
    #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]
    #When your application folder isn't in the system folder
    #This snippet prevents user access to the application folder
    #Submitted by: Fabdrol
    #Rename 'application' to your applications folder name.
    RewriteCond %{REQUEST_URI} ^application.*
    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 $1 !^(index'.php|images|css|js|robots'.txt|favicon'.ico)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>
<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin
    ErrorDocument 404 /index.php
</IfModule> 

routes.php:中的代码

$route['default_controller'] = "page";
$route['404_override'] = '';

来自config.php 的代码

$config['base_url'] = '';
$config['index_page'] = '';

请告诉我,我真的很想做一些事情,因为超过3天我无法在托管服务器上继续,是的,mod_rewrite已启用。

在您的apache配置中。httpd.conf

检查根设置

允许覆盖所有