Forum Discussion
dihris_116090
Oct 26, 2015Nimbostratus
iRule for URL rewriting
Hi All,
I have a query on URL rewriting.
Here is the scenario:
abc.externalurl.com/something/action?key1=value1 --> F5 --> something.internalurl.com/action?key1=value1
secondhost.com ...
Stanislas_Piro2
Oct 26, 2015Cumulonimbus
Hi,
if you are in version 11.4.0 or above, you can use a rewrite profile:
- clientside : http://abc.externalurl.com/something/
- serverside : http://something.internalurl.com/
or use the irule:
when HTTP_REQUEST {
set val1 [getfield [HTTP::uri] "/" 1]
HTTP::host "$val1.internalurl.com"
HTTP::uri [string map "$val1 /" [HTTP::uri]]
}
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