Page rule => rules redirects

Keep getting an error - after following advice to create the rule, I get this error message every time I try to save as draft or deploy.
‘concat(“https://sub.example.com”, http.request.uri.path)’ is not a valid value for target_url because the expression is invalid: Filter parsing error (1:8):^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^unrecognised input (Code: 20083)

Make sure you’re not using curly-quotes.

1 Like

That’s great and worked, except now… if a user types just the domain name (no path) the address resolves as:
example.com goes to sub.example.com/concat("https:/concat("https:/concat("https:/concat("https:/concat("https:/sub.example.com",%20http.request.uri.path)

Page rules seems so much easier now :wink:

Make sure you have the redirect Type set to Dynamic and not Static.

It was. But, thanks, made me test unticking preserve query string - now it works.
Thanks for your help.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.