Forum Discussion
ibrahim_37929
Nimbostratus
Jun 14, 2016redirect i rule
Hi i want to redirect a lot of address like this format.
if http request comes with a.abc.com i want to redirect abc.com/a,
b.abc.com ---> abc.com/b
how can i do this with an i rule?
than...
Yann_Desmarest
Cirrus
Jun 14, 2016Hi,
You can use the below example. It's a single line irule :
when HTTP_REQUEST {
HTTP::respond 301 Location "https://[getfield [HTTP::host] "." 2][getfield [HTTP::host] "." 3]/[getfield [HTTP::host] "." 1]"
}
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