Forum Discussion
gauravarora_370
Nimbostratus
Aug 29, 2018one rewrite url works and another does not.
Hello
I have written an iRule script to rewrite a url based on a condition-
http://intfilings.abc.gov/navigator_icm/?desktop=xyz should rewrite to
http://intfilings.abc.gov/EFiling...
youssef1
Cumulonimbus
Aug 29, 2018Hi,
can you try this (I dont' think it's necessary to add port in host header...):
When HTTP_REQUEST {
if { [HTTP::host] equals "intfilings.abc.gov" && [HTTP::uri] starts_with "/navigator_icm" } {
HTTP::header replace Host "server1.ct.gov:9081"
}
if { [HTTP::host] equals "intfilings.abc.gov" && [HTTP::uri] starts_with "/EFilingWeb" } {
HTTP::header replace Host "server2.ct.gov:9080"
}
}
So can you try with port in host header an without please
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