Nginx geoip redirect , but exclude URL
问题 Currently, I have the following setup for GeoIP redirect in Nginx: set $fromAU 0; set $isAUuri 0; set $isUSuri 0; if ( $geoip_country_code = "AU" ) { set $fromAU 1; } if ( $request_uri ~* "^/australia" ) { set $isAUuri 1; } if ( $request_uri ~* "^/usa-can" ) { set $isUSuri 1; } if ( $request_uri ~* ^/(wp-admin|wp-login\.php) ) { set $isUSuri 1; } set $redirectableAU "${fromAU}${isAUuri}"; if ( $redirectableAU = "10" ) { rewrite "^(/australia)?(.*)" $scheme://$host/australia permanent; } if (