Forum Discussion
lchln_304378
Nimbostratus
Dec 29, 2016Translate mod_rewrite to iRules
Hi guys,
Trying to migrate mod_rewrite rules to F5 iRules and am not having much success. The current setup uses a regex to get the subdomain from a HTTP_HOST and then rewrites the URL, appending t...
JG
Cumulonimbus
Jan 04, 2017Then you need to enable SSL bridging, and apply this example irule:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "abc.domain.com" } {
HTTP::header replace Host [string range [HTTP::host] 4 end]
HTTP::uri "/[string range [HTTP::host] 0 3]"
}
}
Of course you will need to modify the irule to suit your real situation.
[Edited the irule]
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
