My website's old URLs for products in (just) EN was:
{domain}/product/{permalink}
I want to redirect them to:
{domain}/en/product/{permalink}
According to other languages were:
{domain}/{de|fr|es}/product/{permalink}
What I tried to do is:
var rewriteOptions = new RewriteOptions()
.AddRedirect("redirect-rule/(.*)", "redirected/$1/");
app.UseRewriter(rewriteOptions);
Old URLs to be remained:
{domain}/{de|fr|es|...}/product/{permalink}
Just one pattern to be changed:
{domain}/product/{permalink} to {domain}/en/product/{permalink}
What is the correct REGEX I have to use in redirect rules?
