Forum Discussion
chungyu_16122
Altostratus
Aug 25, 2015How to refine a irule for a redirect - browser adds /
Hi all
I am trying to use this redirect for a site; however, it fails when a browser appends a / at the end of the URI.
How can I fix the irule to allow both /puck and /puck/
when HTT...
nathe
Cirrocumulus
Aug 25, 2015Does this help?
when HTTP_REQUEST {
if {[HTTP::host] equals "www.school.com" and ([HTTP::uri] equals "/puck" or [HTTP::uri] equals "/puck/")} {
HTTP::redirect "http://www.school.com/continuingstudies/programs-and-courses/package-and-courses" }
}
N
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