Forum Discussion
Chenco_322726
Nimbostratus
Apr 11, 2018Redirect specifc URI to another URL
Hello,
I tried to find on google but nothing matched my search.
I need a simple redirect from only to > https://www.anotherdomain.com/test/event/841/seatplan/
Any suggestions ?
Thanks!
iaine
Nacreous
Apr 11, 2018Hi
It could be as simple as this
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "www.domain.com")}{
if {[string tolower [HTTP::uri]] eq "/tickets/841" } {
HTTP::redirect "https://www.anotherdomain.com/test/event/841/seatplan/"
}
}
}
However, if your VIP is only hosting content from then you could omit the domain validation part. Also, again depending on your setup, you might want to include some redirect loop config if it is needed
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