Forum Discussion
D99
Cirrus
Apr 21, 2021Redirect URI with "admin" to original URL
Hi Experts, I have a requirement that when external users access https://abc.com/admin/* it should redirect them to https://abc.com. This shouldnt take effect for private IP's i.e for internal ...
spalande
Nacreous
Apr 21, 2021Modify data group name accordingly.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/admin*"
{
if { ![class match [IP::client_addr] equals internal_ip] } {
HTTP::respond 301 Location "https://abc.com"
}
} default {
return
}
}
}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
