繁体   English   中英

Codeigniter:网站重定向过多

[英]Codeigniter: website have too many redirects

我在codeigniter框架中开发了一个Webportal,但是当我尝试在共享托管服务器中托管时,会出现此错误。

wwww.abc.com将您重定向了太多次。 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]

更新我已与托管支持团队联系,他们说这是模式安全错误。 这里是关于它的日志。

ModSecurity:使用状态302(阶段4)重定向到http://spotmyticket.com/,拒绝访问。 RESPONSE_STATUS中的模式匹配“ ^ 5 \\\\ d {2} $”。 [文件“ /usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-50-DATA-LEAKAGES.conf”] [行“ 14”] [id“ 970901”] [版本“ 3”] [msg“应用程序返回了500级状态代码”] [数据“匹配的数据:在RESPONSE_STATUS中找到500:500”] [严重性“ ERROR”] [ver“ OWASP_CRS / 3.0.0”] [成熟度“ 9”] [准确性“ 9“] [标记” Host:spotmyticket.com“] [标记” application-multi“] [标记”语言-multi“] [标记” platform-multi“] [标记”攻击信息公开“] [标记” WASCTC / WASC-13“] [标签” OWASP_TOP_10 / A6“] [标签” PCI / 6.5.6“] [主机名” 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] 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM