Forum Discussion
David_M
Cirrostratus
Dec 10, 2019IIS Server redirects the f5 redirect and we are on a LOOP!
I can see that the backend IIS server redirects the domain.com/the-uri-needed URI again to /the-uri-needed. The correct redirect should have been from domain.com/ to domain.com/the-uri-needed, b...
Dec 10, 2019
Hi David,
Can you share iRule?
David_M
Cirrostratus
Dec 10, 2019I tried few things but it did not work ..one is to replace the link from the response but still nothing . .
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map {"https://domain.com/the-uri-needed" "https://domain.com/"} [HTTP::header Location]]
}
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@https://domain.com/the-uri-needed@https://domain.com/@}
}
STREAM::enable
}This is one..
And another one to do the normal redirect from hostname to hostname/uri.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
