I am trying to create a regular expression for 301 that will help me identify the URL: site.com/abc/ and redirect to site.com/xyz/ . I tried regex like ^abc/? and it works great, but the problem is that even URLs like site.com/123/sdas/abc/213 get in. How can I guarantee that only /abc will be matched with the full string URL?
xoail source share