我在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:拒绝重定向到访问权限 http://spotmyticket.com/使用状态302(阶段4)。模式匹配 RESPONSE_STATUS上的“^ 5 \\ d {2} $”。 [文件 “/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-50-DATA-LEAKAGES.conf”] [line“14”] [id“970901”] [rev“3”] [msg“申请已退回 500级状态代码“] [data”匹配数据:500在...内找到 RESPONSE_STATUS:500“] [严重性”错误“] [ver”OWASP_CRS / 3.0.0“] [成熟期“9”] [准确度“9”] [标签“主持人:spotmyticket.com”] [标签 “application-multi”] [tag“language-multi”] [tag“platform-multi”] [tag“attack-information disclosure”] [tag“WASCTC / WASC-13”] [tag “OWASP_TOP_10 / A6”] [标签“PCI / 6.5.6”] [主机名“spotmyticket.com”] [uri“/index.php”] [unique_id“VxpEf2f3YKwABUKkyP4AAABb”]
答案 0 :(得分:0)
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]