Choose Your Operator Wisely
Chase bumped a question on Stack Exchange my way last night on redirects. The question was simple enough: how do you take a request for https://website1.com/user=1234 and redirect to https://website2...
Updated Jun 06, 2023
Version 2.0JRahm
Admin
Joined January 20, 2005
JG
Feb 05, 2019Cumulonimbus
These two are not exactly the same, as this use of "string match" does not do a positional search:
if { [HTTP::uri] starts_with "/user=" } {}
if { [string match "/user=*" [HTTP::uri]] } {}
.