Forum Discussion
Ozzy
Sep 26, 2024Cirrus
irule does not work in browsers other than google
Hello forum team,
I wrote and implemented an irule for redirection. It doesn't work in Chrome without adding “/” at the end of the path. In Firefox and Ms edge it doesn't work at all.
My irule is as follows:
when HTTP_REQUEST {
if { [HTTP::path] equals “/” } {
HTTP::redirect “/wm/”
}
}
Has anyone had experience with this?
HTTP::redirect should used with url not just path
so try
when HTTP_REQUEST {
if { [HTTP::path] equals “/” } {
HTTP::redirect "https://[HTTP::host]/wm"
}}
or replace https with http if needed
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