Codeigniter:网站重定向过多 [英] Codeigniter: website have too many redirects

查看:735
本文介绍了Codeigniter:网站重定向过多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在codeigniter框架中开发了一个webportal,但是当我尝试托管在共享托管服务器,我会得到这个错误。

I have developed a webportal in codeigniter framework,but when i try to host in a shared hosting server i will get this error.


wwww.abc.com重定向了你太多次。 ERR_TOO_MANY_REDIRECTS

wwww.abc.com redirected you too many times. ERR_TOO_MANY_REDIRECTS

我不知道是什么问题

我的 .htaccess 文件

RewriteEngine on
# Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteCond %{REQUEST_URI} ^application.*[NC]
        RewriteRule (.*?)index\.php/*(.*) $1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?/$1 [L]

UPDATE
托管支持团队,他们说这是一个模式安全错误。

UPDATE I have contacted with hosting support team ,they said that it was a mode security error. Here the log about it.


ModSecurity:Access denied with redirected to
http://spotmyticket.com/ ,使用状态302(阶段4)。在RESPONSE_STATUS模式匹配
^ 5 \\d {2} $。 [file
/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-50-DATA-LEAKAGES.conf]
[line14] [id970901] [ rev3] [msg应用程序返回
500级状态代码] [data匹配数据:500在
中找到RESPONSE_STATUS:500] [severityERROR] [ OWASP_CRS / 3.0.0]
[maturity9] [accuracy9] [tagHost:spotmyticket.com] [tag
application-multi多个] [tagplatform-multi]
[tag攻击信息公开] [标签WASCTC / WASC-13] [tag
OWASP_TOP_10 / A6 /6.5.6] [hostnamespotmyticket.com]
[uri/index.php] [unique_idVxpEf2f3YKwABUKkyP4AAABb]

ModSecurity: Access denied with redirection to http://spotmyticket.com/ using status 302 (phase 4). Pattern match "^5\\d{2}$" at RESPONSE_STATUS. [file "/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-50-DATA-LEAKAGES.conf"] [line "14"] [id "970901"] [rev "3"] [msg "The Application Returned a 500-Level Status Code"] [data "Matched Data: 500 found within RESPONSE_STATUS: 500"] [severity "ERROR"] [ver "OWASP_CRS/3.0.0"] [maturity "9"] [accuracy "9"] [tag "Host: spotmyticket.com"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-information disclosure"] [tag "WASCTC/WASC-13"] [tag "OWASP_TOP_10/A6"] [tag "PCI/6.5.6"] [hostname "spotmyticket.com"] [uri "/index.php"] [unique_id "VxpEf2f3YKwABUKkyP4AAABb"]


推荐答案

DirectoryIndex index.php
RewriteEngine on                       
RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA] 

这篇关于Codeigniter:网站重定向过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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