Forum Discussion
Help with iRule for redirect from abc.com to url abc.com/a/aasa/sss/
Help please. I'm stuck.When i write
if { [HTTP::host] eq "abc.com" } then { HTTP::redirect "https://abc.com/aaaa/bbbb/cccc" return }
I get an infinite loop :(
How do I properly write this rule ???
3 Replies
- nitass
Employee
can you try this?
if { [HTTP::host] eq "abc.com" and [HTTP::path] eq "/" } { HTTP::redirect "https://abc.com/aaaa/bbbb/cccc" return } - MaximS_168794
Nimbostratus
i'm already use this iRule
if { [HTTP::host]] eq "abc.com" && [string tolower [HTTP::uri]] equals "/" }{ HTTP::redirect "https://abc.com/a/aaaa/aaaca/" return }
but - thanks a lot for help. big 10x!
- IheartF5_45022
Nacreous
You need to use the developer tools in the browser (or log responses in HTTP_RESPONSE) to see what's coming back from the server to cause the redirect loop.
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