Question
Scripting - URL path replacement
I have this string:
when HTTP_REQUEST{ path = HTTP:path_get() debug("Path rewrite starts for Path %s ", path) -- replace path which is /prefix/something/* so only /something/* stays in the path HTTP:path_set("%s", path:gsub("/prefix", "")) }
How to achieve the removal of the prefix? This script does not work. Also I don't see debug messages in the logs even though Scripting logging is enabled.
Thanks
