内部服务器错误错误500 Codeigniter

时间:2019-03-31 05:44:58

标签: .htaccess codeigniter hosting cpanel namecheap

我正在使用namecheap cpanel托管我的网站。我很难加载我的网站。我已经更改了config.php基本URL和database.php。我已经用此代码多次更改了htaccess。谁能帮我解决这个问题?

<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and 
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

<IfModule !mod_rewrite.c>

但是当我将htaccess还原为此代码时,它显示404错误:

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

0 个答案:

没有答案