CodeIgniter .htaccess-500内部服务器错误/index.php删除 [英] CodeIgniter .htaccess - 500 Internal Server Error/ index.php remove

查看:56
本文介绍了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

这篇关于CodeIgniter .htaccess-500内部服务器错误/index.php删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆