Forum Discussion
Seckin_149390
May 15, 2017Nimbostratus
Simple iRule
Hi all,
I want to write irule to append "/" character to all http requests.
For example ;
if http request is http://abc.com/test, this request must be http://abc.com/test/
Kind Regards,
Try this:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } { HTTP::redirect "https://[HTTP::host]/" }
}
- RyannnnnnnnnAltocumulus
I knew i had seen a similar request not too long ago. Please look here as Patrik covers a very similar question.
- JGCumulonimbus
To all http requests? What if you have a request such as "http://abc.com/test.cgi?param=1"?
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