Forum Discussion
iRule redirection
- Dec 23, 2022
Hi ecwlam
you can use this IRule:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/aa/"} {
HTTP::uri [string map {"/aa/" "/bb/"}[HTTP::uri]]
HTTP::redirect "[HTTP::uri]"
}
}
Hi ecwlam
you can use this IRule:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/aa/"} {
HTTP::uri [string map {"/aa/" "/bb/"}[HTTP::uri]]
HTTP::redirect "[HTTP::uri]"
}
}
Hello All,
I am trying to a redirect with some complication. I need to redirect the URL to the backend server but keep the Friendly name in the browser.
Eg- appurl.com but the server is expecting appserverurl.com but the browser must always say appurl.com during request/response.
Hope this makes sense.
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