Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.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 页码为';t工作并在CodeIgniter中返回HTTP错误500_Php_.htaccess_Codeigniter - Fatal编程技术网

Php 页码为';t工作并在CodeIgniter中返回HTTP错误500

Php 页码为';t工作并在CodeIgniter中返回HTTP错误500,php,.htaccess,codeigniter,Php,.htaccess,Codeigniter,我有一个内置的CodeIgniter站点,它在本地主机上运行得非常好,但是在将站点迁移到子域上的在线服务器时,它会给出“页面不工作,无法处理请求。HTTP错误500” 我还将base\u url从localhost/school/更改为sub.domain.com,并且 数据库凭据也很好 这是我的htaccess代码: RewriteEngine on RewriteCond %{HTTP_HOST} ^(.*)\.domain\.com RewriteRule ^(.*)$ http://

我有一个内置的CodeIgniter站点,它在本地主机上运行得非常好,但是在将站点迁移到子域上的在线服务器时,它会给出“页面不工作,无法处理请求。HTTP错误500”

我还将
base\u url
localhost/school/
更改为
sub.domain.com
,并且 数据库凭据也很好

这是我的htaccess代码:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(.*)\.domain\.com

RewriteRule ^(.*)$ http://domain.com/subdomains/%1/$1 [L,NC,QSA]

检查站点日志文件以获取错误消息。为什么有2个答案??