I only found this bug exists when matching reddit URLs, which is really weird.
regex: ^https?:\/\/www\.reddit\.com(.*)
replacement: https://old.reddit.com$1
The regex & replacement is absolutely CORRECT, we can verify it on https://regex101.com/
But this is the result:
Original URL:
www.reddit.com/r/palemoon/comments/o0og9f/arkenfox_userjs_usage_in_palemoon
Redirected URL:
old.reddit.comr/palemoon/comments/o0og9f/arkenfox_userjs_usage_in_palemoon/
The /
before r
is missed.
The correct redirected URL should be:
old.reddit.com/r/palemoon/comments/o0og9f/arkenfox_userjs_usage_in_palemoon/
I have no idea what is happening here.
Every other RegEx redirection rules works perfect, except this one for reddit.