CodeIgniter .htaccess-500内部服务器错误/index.php删除

问题描述:

我有一个这样的网站(子域)

I have a website like this (sub-domain)

rabbani.websolocom.xyz

我有这样的.htaccess代码(我使用了Codeigniter):

And I have the .htaccess code like this (I used Codeigniter) :

RewriteEngine on
RewriteBase /rabbani
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-D
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

但是,当我尝试访问我的网站时,它会出错(500 Internal Server Error).我的.htaccess文件应该怎么办?还是我的目录中有其他错误的文件?

But when I try to access my website it goes error (500 Internal Server Error). What should i do with my .htaccess file? Or any another file that wrong in my directory?

使用此

.htaccess (外部应用程序文件夹)

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

这是Codeigniter推荐的.htaccess