Forum Discussion
cymru81
Altocumulus
Dec 01, 2020irule uri redirect help
Hi Im looking for help with an irule to achieve the following:
if someone visits https://www.site.com/abc/def or https://www.site.com/abc/def/ it redirects them to https://www.domain.com - we have the following irule in place but it doesnt capture the second uri with trailing '/' https://www.site.com/abc/def/
when HTTP_REQUEST {
if { ([HTTP::host] equals "www.site.com") and ([HTTP::path] ends_with "/abc/def") } {
HTTP::redirect https://www.domain.com
}
}
Any help appreciated!
7 Replies
No RepliesBe the first to reply
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