Setting Up redirect

I want to set up 301 Redirect for Tag URl.

My Tag url was something like this
example.com/tag/tagname

But when I was adding Meta description somehow It got changed to
example.com/tag/tagname-2

So How can I setup a 301 redirect as some URl are indexed in Search.

1 Like

So it will be something like this

{
  "from": "example.com/tag/tagname-2/" ,
  "to":  "example.com/tag/tagname/$1",
  "permanent": true
}

From first glance that looks correct, but my suggestion would be to try it :wink:

1 Like

:sweat_smile: I would have tried it earlier I came here just to be sure about this gonna work or not.

Well will let you know about it. :sweat_smile:

Its not working throwing 404 Error