2016-04-22 50 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

我無法得到您的答案 –