为什么我收到“禁止”时,我尝试登录我的生活codeigniter网站? [英] Why I am getting 'Forbidden' when I try to login on my live codeigniter site?
本文介绍了为什么我收到“禁止”时,我尝试登录我的生活codeigniter网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#Deny from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|images|upload|uploads|html|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
这是我目前的.htaccess文件和站点称为客户一个子域目录中。你可以在这里访问网站: http://clients.creditblitz.ca/
This is my current .htaccess file and site is inside a sub-domain directory called clients. You can access the site here: http://clients.creditblitz.ca/
推荐答案
您指定的网址重定向到404页
Your given url is redirect to 404 page
http://clients.creditblitz.ca/authenticate
但下面的URL访问重定向到200响应
But access below url redirect to 200 response
http://clients.creditblitz.ca/index.php/authenticate
所以,请删除index.php文件在codeIgniter框架的配置文件
So, Please remove the index.php in codeIgniter Framework config file
$config['index_page'] = '';
和下面的申请编码htaccess的
And apply below htaccess coding
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|css|images|robots\.txt)
RewriteRule .* index.php/$0 [PT,L]
这篇关于为什么我收到“禁止”时,我尝试登录我的生活codeigniter网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文