Forum Discussion
Bob_10976
Jun 22, 2011Nimbostratus
Converting Regex to iRule
I've been tasked with moving our ISAPI rules from the web server to the LTM iRules. I understand ISAPI use regex, however I'm not familiar with that as I need to be so I was hoping to get some ...
hooleylist
Jun 29, 2011Cirrostratus
You could rewrite sitename.us.com to cms.test.sitename.us.com in the URI. Here's an example you could combine with the Host header rewriting:
when HTTP_REQUEST {
if {[HTTP::uri] contains "sitename.us.com"}{
HTTP::uri [string map {sitename.us.com cms.test.sitename.us.com} [HTTP::uri]]
}
}
Aaron
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