Welcome Guest, Not a member yet? Register   Sign In
.htaccess ERR_TOO_MANY_REDIRECTS
#4

(06-17-2015, 07:52 AM)dilanwijerathne Wrote:
(06-17-2015, 07:36 AM)mwhitney Wrote: First, you should perform the redirect in .htaccess or CodeIgniter, not both.

Second, you need to redirect to a controller/method, not a view; or simply load a different view for the user agent rather than redirecting.

If you are redirecting, you need to make sure you aren't performing another redirect when the user comes into the site after being redirected. A redirect tells the browser to go to another URL, which means your application is going to start over again with the same user requesting the new URL.

Can you give me a sample ?

I tried like this calling controller 


RewriteEngine on

RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1


RewriteCond %{HTTP_USER_AGENT} "MSIE [6-8]" [NC]
RewriteRule .* /secPay/doc [R]


but it does not work 
it gives error like this 

This webpage has a redirect loop


ERR_TOO_MANY_REDIRECTS


how can I solve this ?
Reply


Messages In This Thread
RE: .htaccess ERR_TOO_MANY_REDIRECTS - by dilanwijerathne - 06-17-2015, 10:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB