Php 页码为';t工作并在CodeIgniter中返回HTTP错误500
我有一个内置的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://
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个答案??