Redirecting using regex wildcards – just middle part of URL

#472360
  • Resolved Monique Clark
    Rank Math free

    I am trying to work out how to redirect our old url structure to the new structure but am very confused. I did try to follow the documenation but it doesnt work.

    Example of old URL structure:

    wills-estates/writing-a-will/

    New structure:

    estate-planning/writing-a-will/

    I have tried the following:

    wills-estates/(.*)

    to

    estate-planning/$1 – ends up redirecting everything to estate-planning/)

    and

    estate-planning/* – ends up redirecting everything to estate-planning/)

    and

    estate-planning/(.*) – ends up redirecting everything to estate-planning/(.*

    I cannot get it to work – what is the correct structure?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nevermind I had a conflicting redirect.

    Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math.

    We’re glad that you found the issue.

    If you have any questions in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Redirecting using regex wildcards – just middle part of URL’ is closed to new replies.