Forum Discussion
Almassud_221797
Cirrus
Aug 29, 2016Redirect iRule
Hello all,
I have a simple iRule that redirects to another URL:
when HTTP_REQUEST {
HTTP::redirect "http://host.DomainName.com/uri1[HTTP::uri]"
}
problem that I am facing is that there ...
Almassud_221797
Cirrus
Aug 29, 2016No dice.
I think my first post is a bit confusing and I apologize for that. so the iRule is this:
when HTTP_REQUEST {
HTTP::redirect "http://host.DomainName.com/uri1[HTTP::uri]" }
The iRule in its current state redirects fine, but the only problem is the with the uri where it gets doubled if it's already there, so what needs to happen is that the iRule needs to check if there's any uri it would strip it before it redirects to the final url/uri.
I hope making sense and not muddying this even further :)
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