【发布时间】:2017-12-31 02:09:16
【问题描述】:
RewriteEngine On
RewriteEngine On
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteCond www.%{HTTP_HOST} ^(?:www\.)?(www\..+)$ [NC]
#RewriteRule ^ https://%1%{REQUEST_URI} [NE,L,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
这是 .htaccess 文件 我的配置文件是这样的
$config['base_url'] = 'http://website.org/';
$config['index_page'] = '';
这在测试服务器上运行完美,但在实时服务器上出现 500 错误。
【问题讨论】:
-
只使用一次
RewriteEngine On -
试试this,检查
.htaccess、db和config文件 -
在出现 500 内部服务器错误时,您始终要做的第一件事就是检查相关的日志文件。 (-1 仍然需要向“软件工程师”解释。)
-
感谢您的评论,但我在使用所有选项后提出了这个问题,错误记录了错误模式,它没有显示任何内容。
-
请求没有进入我的主控制器的结构。
标签: php .htaccess codeigniter