Forum Discussion
MarkB_125162
Nimbostratus
Dec 21, 2012Redirect / Rewrite iRule
Hi,
I am trying to achieve something quite straight forward with an iRule but struggling to get this to work.
The requirement is this: I want an iRule to both redirect and rewrite the URL a...
nathe
Cirrocumulus
Dec 21, 2012MarkB
Wouldn't the host be www.old.com? I've also removed the variable set as it adds an extra process and you're not making many references to it so I wouldn't bother. Just my 2pence.
Try this:
when HTTP_REQUEST {
HTTP::header replace "Host" "www.old.com"
HTTP::uri "/vs"
}
when HTTP_RESPONSE {
log local0. "Response: [HTTP::host]"
}
HTH,
N
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