.htaccess 没有指定输入文件错误。Codeigniter 3和go daddy子域

.htaccess 没有指定输入文件错误。Codeigniter 3和go daddy子域,.htaccess,codeigniter,.htaccess,Codeigniter,打开codeigniter基url后,我遇到以下错误: “未指定输入文件”。我知道它与htaccess文件有关,但无法使其工作 我的htaccess文件内容: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] Go daddy目录结构:htaccess文件位于子域的根文件夹中。 您的htacces

打开codeigniter基url后,我遇到以下错误: “未指定输入文件”。我知道它与htaccess文件有关,但无法使其工作

我的htaccess文件内容:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Go daddy目录结构:htaccess文件位于子域的根文件夹中。

您的htaccess文件很好,您需要检查控制器中的路径 我想可能是视图文件丢失了

$this->load->view('file_view', $data);
在视图文件夹中,它被命名为“file_view.php”

还要确保文件路径正确 如果您正在调用模块,则模块文件夹下存在模块文件

选中
$route['default\u controller']=“frontpage”在routs.php中的“配置”文件夹下,在“视图”文件夹中必须存在上述frontpage.php的“配置”文件夹

添加重写基

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

您的htaccess文件很好,您需要检查控制器中的路径 我想可能是视图文件丢失了

$this->load->view('file_view', $data);
在视图文件夹中,它被命名为“file_view.php”

还要确保文件路径正确 如果您正在调用模块,则模块文件夹下存在模块文件

选中
$route['default\u controller']=“frontpage”在routs.php中的“配置”文件夹下,在“视图”文件夹中必须存在上述frontpage.php的“配置”文件夹

添加重写基

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

默认控制器已设置为正确的管理员控制器。视图和模型也存在,因为所有内容都在localhost上运行。在live server上,尝试访问site.com/index.php,如果加载了index.php,请确保在php.initry中将mod rewrite设置为enabled with RewriteBase/谢谢。如果我尝试使用RewriteBase,我收到另一个错误:Type:RuntimeException消息:无法找到您指定的模型:Admin_model Filename:/home/meshireations/public_html/meshilabel/system/core/Loader.php行号:344 Backtrace:File:/home/meshireations/public_html/meshilabel/application/controllers/Admin.php行:29函数:模型文件:/home/meshicreations/public\u html/meshilabel/index.php行:292函数:require\u请注意,存在视图、模型和控制器,并且路径也正确。默认控制器已设置为正确的管理员控制器。视图和模型也存在,因为所有内容都在localhost上运行。在live server上,尝试访问site.com/index.php,如果加载了index.php,请确保在php.initry中将mod rewrite设置为enabled with RewriteBase/谢谢。如果我尝试使用RewriteBase,我收到另一个错误:Type:RuntimeException消息:无法找到您指定的模型:Admin_model Filename:/home/meshireations/public_html/meshilabel/system/core/Loader.php行号:344 Backtrace:File:/home/meshireations/public_html/meshilabel/application/controllers/Admin.php行:29函数:模型文件:/home/meshicreations/public\u html/meshilabel/index.php行:292函数:require\u请注意,存在视图、模型和控制器,路径也正确。