You can use concat
function mentioned above, or you can fix your wildcard rule. The problem is in the target of the redirect. Static URL redirect target is interpreted as a string, so variable is not going to be expanded there.
What you need to do is:
- Change type from
Static
toDynamic
(this is required forconcat
method too, by the way) - Change
https://www.lamusiquedegenevieve.com/$1
towildcard_replace(http.request.full_uri, "https://lamusiquedegenevieve.com/*", "https://www.lamusiquedegenevieve.com/${1}")
in the URL redirect URL target
Note that the syntax for wildcard expansion is ${X}
, where <X>
indicates the index of a matched pattern. You can read more about it in wildcard replacement.
As I mentioned here, this process will become much easier and more intuitive once simplified URL with wildcard support is released for Single Redirects in the upcoming days.