Forum Discussion
getting redirect loop
getting redirect loop when using irule
12 Replies
- Mahmoud_Eldeeb_
Cirrostratus
could you provide more clarifications
- Ron_Perry_18043
Nimbostratus
Disclaimer: I'm new to all this...
When trying to use a Vanity irule I get a redirect loop in Google or site can not be found in IE. When doing a curl the results are positive. Any suggestions for troubleshooting?
when HTTP_REQUEST { if { ([HTTP::host] equals "hostqalb.ad.domain.com") } { HTTP::redirect "http://hostqalb.ad.domain.com/hostportal" } }
- Mahmoud_Eldeeb_
Cirrostratus
did you tried different explorer (ms ie, firefox, chrome ,...)
- Ron_Perry_18043
Nimbostratus
yes chrome and IE, haven't tried Firefox yet
- Mahmoud_Eldeeb_
Cirrostratus
try firefox, as ie and chrome almost same in their setting and characteristics, also same security
- Mahmoud_Eldeeb_
Cirrostratus
try firefox, as ie and chrome almost same in their setting and characteristics, also same security
- Ron_Perry_18043
Nimbostratus
I also setup monitoring on my browser and noticed that the page was going into loop. when I remove the iRule I can get to the page http://hostqalb.ad.domain.com/hostportal with no issues.
- Sheigh_65772
Cirrus
Ron,
The scope of your match looks to broad to me, try adding a check for uri as well such as:
when HTTP_REQUEST { if { [HTTP::host] equals "hostqalb.ad.domain.com" and [HTTP::uri] equals "/" } { HTTP::redirect "http://hostqalb.ad.domain.com/hostportal" } } - Ron_Perry_18043
Nimbostratus
getting the following parse error when doing the update on the iRule
01070151:3: Rule [/Common/CamstarQAVanity] error: /Common/CamstarQAVanity:3: error: [parse error: extra characters after close-quote][
- Ron_Perry_18043
Nimbostratus
here is the entire error: 01070151:3: Rule [/Common/CamstarQAVanity] error: /Common/CamstarQAVanity:3: error: [parse error: extra characters after close-quote][http://hostqalb.ad.domain.com/semiportal">http://hostqalb.ad.domain.com/hostportal" ]
- Sheigh_65772
Cirrus
yeah my code didnt seem to post correctly, the important part is the second condition, your redirection command looked good.
if { [HTTP::host] equals "hostqalb.ad.domain.com" and [HTTP::uri] equals "/" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
