Replacing a string within the path requires the function regex_replace(), available with Business Plan or higher.
When incoming requests match
Field: URI Path
Operator: starts with
Value: /parent/
Then
Type: Dynamic
Expression: concat("https://www.example.com", regex_replace(http.request.uri.path, "/parent/", "/parents/"))
Status code: 301
Preserve query string: yes
Wow! I’m on a free plan. Surprised that I stumbled upon such a narrow use case apparently, that it’s only solvable in the Business plan. Seems a bit of an overkill to be honest.
Thank you though, the Page Rules solution works wonderfully right now! I wonder for how long it will, haha.
I’ve just found out that, as it turns out, you can actually use the substring() function, available in all plans, instead of regex_replace(). I’ve updated the Redirect Rules (beta) Cheat Sheet document.
In your case, you can try the following Redirect Rule:
When incoming request match...
URI Path starts with /parent/
Then
Dynamic
Expression: concat("https://examle.com", substring(http.request.uri.path, 0,7), "s", substring(http.request.uri.path,7))