Forum Discussion
Lucas_56257
Nimbostratus
Sep 13, 2017IRules URI with session ID
Hello,
My Big-IP is running on version 12.1.2.
I have a irules to change the path an application and work fine.
when HTTP_REQUEST {
set http_path [string tolower [HT...
Stanislas_Piro2
Cumulonimbus
Sep 13, 2017Hi,
In the string map command, don't set $http_uri between brackets!
HTTP_REQUEST {
set http_path [string tolower [HTTP::path]]
set http_uri [string tolower [HTTP::uri]]
if { $http_path starts_with "/security/servletauthentication"} {
HTTP::uri "/sense/secserver/ServletAuthentication"
}
elseif { $http_path starts_with "/sense/install/" } {}
elseif { $http_path contains "/applications/server" } {
HTTP::uri [string map {"/applications/server?download=" "/sense/appserve/Serve?download="} $http_uri]
} else {drop}
}
Do you really want to hide internal URLs by external ones? I guess it is more simple to redirect to new URI with 301 redirect.
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