I have read the official article for a long time and have done some experiments but failed, so I am looking for help from there, hopefully, someone can help me or some hints?
Thank you so much, looks great. but one more question is coming out, may you help?
I want to keep fixed content like https://bac.com/wp_admin and all following URLs without any changes.
like https://bac.com/wp_admin and such as bac.com/wp_admin/xxx all keep original URL, not need rewrite rule, how can I do this and keep your rewrite rule working together?
I just wanted to mention that the current rewrite rule replaces the query string with w_id=123 instead of appending.
If you want to append w_id=123 to the current query string (therefore keeping existing parameters), change “Static” to “Dynamic” and set the value to concat (http.request.uri.query, "&w_id=123").
Though do note this will cause the query string to become ?&w_id=123 if the existing query string is empty - this should be treated as a valid query string but your URL parser may not like it.
I’m not sure that is possible to do with Transform Rules. URL Rewrites are made to do simple transformations that do not require much logic. I’d recommend you take a look at Cloudflare Workers - they will let you do this, and more