2016-04-22 110 views
2

我已经在codeigniter框架中开发了一个webportal,但是当我尝试在共享托管服务器中托管时,我将得到此错误。Codeigniter:网站有太多的重定向

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] 

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

ModSecurity的:访问被拒绝具有重定向到 http://spotmyticket.com/使用状态302(阶段4)。模式匹配 “^ 5 \\ d {2} $”在RESPONSE_STATUS。 [档案 “/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/RESPONSE-50-DATA-LEAKAGES.conf”] [line“14”] [id“970901”] [rev“3”] [ msg“应用程序返回一个 500级状态码”] [数据“匹配数据:500在 RESPONSE_STATUS:500”中找到] [严重性“ERROR”] [ver“OWASP_CRS/3.0.0”] [成熟度] 9 “] [[精确度”9“] [标签”主机:spotmyticket.com“] [标签 ”应用程序多“] [标签”语言多“] [标签”平台多“] [标签” [标签“WASCTC/WASC-13”] [标签 “OWASP_TOP_10/A6”] [标签“PCI/6.5.6”] [主机名“spotmyticket.com”] [uri“/index.php”] [unique_id“VxpEf2f3YKwABUKkyP4AAABb”]

回答

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] 
+0

它没有工作 –

+0

的ErrorDocument 404的index.php 的DirectoryIndex index.php文件 RewriteEngine叙述上 的RewriteCond%{} REQUEST_FILENAME!-f 的RewriteCond%{} REQUEST_FILENAME! -d RewriteRule ^(。*)$ index.php?/ $ 1 [L,QSA] Gor

+0

我无法得到您的答案 –