Forum Discussion
kykong_107132
Nimbostratus
Jul 14, 2005I rules to add backslash
Hi All,
I have a requirement where by if someone enter www.abc.com/main, i want to use irules to append a backslash on behind, www.abc.com/main/.
below is my sample rule
========================================
if (http_uri == "main") {
redirect to "http://%h/main/"
}
else {
use pool web
}
========================================
but it seem like doesn't work. anyone can provide some help.
thank.
- The uri starts with the beginning slash. Change your if to
and see if that does it for you.if (http_uri == "/main") {
- kykong_107132
Nimbostratus
hi Joe,
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