In Fiddler Everywhere on Mac I try creating a redirect to catch requests sent to https://my.url.here/this/that/0.0.112/filename and serve some locally stored files instead. This is for a development environment on a project. I have created the following rule:
Conditions:
URL Contains: https://my.url.here/this/that/
Rules:
Update Url
Regular expression:
/https:\/\/my.url.here\/this\/that\/[0-9\.]+\/(.+)
/Users/firtname.lastname/Projects/projectname/dist/$1
The Condition is triggered because I also have a rule to color the requests and I can see that the requests are colored as I expect it. The regex Rule is probably not executed because the files are still served from https://my.url.here/this/that/... instead of the locally stored files.
Could you please advise what I am doing wrong with my regex or anything else?
Thank you.
I have figured out that the regex:
https://my.url.here/this/that/[0-9\.]/(.+)
works fine and triggers the rule, because if I use the replacement string: https://google.com/search?q=$1 is executed correctly until google refuses to connect. But if I set the local file for Fiddler to return, it doesn't work: /Users/firtname.lastname/Projects/projectname/dist/$1.
Can anyone advise how to return local files by regex search/replace?