Forum Discussion
T_Rajneesh
Nimbostratus
Apr 26, 2019Url redirection
Hi,
i'm trying to redirect to https://abc.com/Test/app. I have a written irule and applied to https vs but it is getting redirected to https://abc.com but not the desired url : https://abc.com/...
youssef1
Cumulonimbus
Apr 26, 2019Hi,
can you try this:
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
set uri [string tolower [HTTP::uri]]
log local0. "host: $host - uri: $uri"
if { $host == "abc" && $uri == "/" } {
log local0. "Matchhhh"
HTTP::respond 302 Location "https://abc.com/Test/app"
}
I set you a log in order to check that you match the right condition...
regards
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
