Redirect wildcard /state/city/[wildcard] to /state/greater-city/[wildcard]

#617914
  • Resolved Anonymous
    Rank Math free

    Hi, I have changed some urls in a directory to add the word greater like this

    /state/city/[wildcard] to /state/greater-city/[wildcard]

    [wildcard] some times is the /region and sometimes has region/suburb

    How do I make a redirect for this?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    In this case, you can try this regex redirect to achieve that:

    Source: state/city/(.*)
    Type: Regex
    Destination: state/greater-city/$1

    And here’s a guide on how to create regex redirect in Rank Math:
    https://rankmath.com/kb/how-to-use-regex-redirects/

    Hope that helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Redirect wildcard /state/city/[wildcard] to /state/greater-city/[wildcard]’ is closed to new replies.