Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 代码点火器未加载控制器_Php_Codeigniter - Fatal编程技术网

Php 代码点火器未加载控制器

Php 代码点火器未加载控制器,php,codeigniter,Php,Codeigniter,我在将网页放在生产环境中时遇到一些问题 My config.php文件: $config['base_url'] = 'http://www.mywebsite.com/'; $config['index_page'] = 'index.php'; routes.php $route['default_controller'] = "welcomePage"; 它是一个一对一服务器。 “”正在链接到/web//web/是安装我的codeigniter应用程序的目录。它在localhost上运

我在将网页放在生产环境中时遇到一些问题

My config.php文件:

$config['base_url'] = 'http://www.mywebsite.com/';
$config['index_page'] = 'index.php';
routes.php

$route['default_controller'] = "welcomePage";
它是一个一对一服务器。 “”正在链接到/web//web/是安装我的codeigniter应用程序的目录。它在localhost上运行良好。现在,当我转到“”时,我得到一个404 not found错误(codeigniter错误,因此“index.php”至少已加载。有什么想法吗?提前感谢!)

埃迪特1---------------------

.htacces:
拒绝所有人将此添加到您的.htaccess:

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L] 
</IfModule>

重新启动发动机
重写条件%{HTTPS}关闭
重写规则(.*)https://%{HTTP_HOST}%{REQUEST_URI}[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则。*index.php/$0[PT,L]

应该工作…

它的404是由浏览器还是由codeigniter生成的?显示你的
.htaccess
它是由codeigniter生成的:/dianuj->查看我的编辑我刚刚注意到有大量的.htacces。我要看哪一个s