cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect URI with "admin" to original URL

Danish
Altocumulus
Altocumulus

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 users admin url should open.

 

Please let me know how can I achieve this either with irule or http policy

 

 

1 REPLY 1

SanjayP
MVP
MVP

Modify 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 } } }