Forum Discussion
ERLomboy_27803
Feb 08, 2014Nimbostratus
iRule rewrite | URL hiding
Hi Guys,
Have a requirement and I'll try to provide as much details as possible to help understand.
Internet users views web page, and posts web form to: htps://www.mysite.com/help/site1/...
nitass
Feb 09, 2014Employee
The F5 is giving me an error
can you try something like this?
e.g.
root@(ve11-8)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
log local0. "BEFORE: client:[IP::client_addr]:[TCP::client_port] host:[HTTP::host] uri:[HTTP::uri]"
if { [HTTP::host] eq "www.mysite.com" and [HTTP::uri] starts_with "/help/site1/" } {
HTTP::header replace Host "news.bizsite.com:8080"
HTTP::uri [string map {"/help/site1/" "/ehelp/microsites/"} [HTTP::uri]]
log local0. "AFTER: client:[IP::client_addr]:[TCP::client_port] host:[HTTP::host] uri:[HTTP::uri]"
}
}
}
Do I need to put the iRule I created on top of the Irule list associated with the virtual server in order for it to be read by F5?
Stacking iRules: A Modular Approach by Deb Allen
https://devcentral.f5.com/articles/stacking-irules-a-modular-approach.UvcQDLSjZQIas I've mentioned I have little room for error as this is Prod.
i think it is better if you can test using trial or evaluation license before applying to production.
Trial Software Site
https://www.f5.com/trial/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