Forum Discussion
William_Sun_991
Nimbostratus
Jun 27, 2014Need help on wildcard redirect iRule
We need to an iRule to redirect traffic from
https://abc.test.com/*
https//*.abc.test.net
Here is the iRule
when HTTP_REQUEST {
scan [HTTP::uri] %[^.]%[^.] prefix uri
log l...
Arie
Altostratus
Jun 27, 2014Try this instead.
when HTTP_REQUEST {
if { [HTTP::host] equals "abc.test.com" } {
HTTP::redirect "https:/[HTTP::path].abc.test.net"
}
}
Note: I've omitted a slash from "https://" since the path will always start with a slash. That'll provide the second one for "https://".
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