Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

[solved] The webpage has a redirect loop

[solved] The webpage has a redirect loop

HI Stephen

Using Chameleon 2.44 on Joomla 3.3.6 and PHP Version 5.3.15.

I have a simple rule which detects browser (under Environment) - chrome. If the browser is chrome, it redirects to a url.

If I put and external url like http://www.google.com.au/, it redirects no problems.

However, if I use an internal chosen uder "redirect this..." dropdown, the page tries to load but it just sits there and then throws a 310 ERRORCODE: ERR_TOO_MANY_REDIRECTS

If I turn on DEBUG in chameleon, I get the following displayed after I turn the rule off. I only have 1 rule enabled so not sure what the issue could be.

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:45pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:45pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:45pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:46pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:46pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:46pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html

CHAMELEON DEBUG ON

Current date and time: "2014-10-07 21:29:46pm" in timezone "Australia/Brisbane"

Processing rule id 5 ("Unsupported Browser")

- Browser "chrome" in allowed list

Started SUCCEED action for rule id 5

* Redirecting to /supported-browers.html


Thanks

Patrick

paddyrolls
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: [solved] The webpage has a redirect loop

Hi Patrick,

the logic here is that you are sending everyone with a particular browser to a particular page... but when they get there, the same test is done again and they are redirected back to that same page, over and over.

To prevent this, you need to create another rule, before the one you already created. In this new rule, you will detect the page supported-browers.html. If found (i.e. in the Succeed Action), select "Stop Processing". So if they are ALREADY on that page, then this rule will run, and it stop and not go to the next rule that would otherwise redirect again.

Make sense?

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] The webpage has a redirect loop

Hi Stephen

Ah....yes I understand the never ending logic here....

Thank you so much for your assistance and solution.

Regards

Patrick

paddyrolls
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: [solved] The webpage has a redirect loop

Hello,
Im having the same issue, where should i put those rules? Using latest chameleon, downloaded 12 jan 2017.

Thank you

bastreri
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: [solved] The webpage has a redirect loop

Hi, for help you'll need to give some more details about what you are attempting to do, what rules you already have, and what symptoms you are seeing.
I'm going to be offline for a few days - back on Wednesday 15 Jan.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4412
Newest User:
doyal54741
Members Online:
1
Guests Online:
190

Online: 
doyal54741

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked