Regex redirects not working

#120129
  • Resolved DJ Tech Reviews
    Rank Math pro
    Content AI Starter

    I’ve tried every single regex snippet I can for redirects and NONE are working.

    I’m trying to redirect all the ‘TAG’ archives (i.e https://example.com/tag/(whatever the term is…) back to the homepage. Basically so they don’t exist.

    I tried using all the available options but none of them are working at all.

    How is this possible?

    Many Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math Support and sorry for any inconvenience this might have caused.

    Please can you give this regex pattern a try:
    /tag/(.*)$

    And use this as the target: $1

    Let us know how that goes.

    DJ Tech Reviews
    Rank Math pro
    Content AI Starter

    Hello Uzair,

    Thanks for the reply, but unfortunately this hasn’t worked. It just redirects the website to: [TAG-NAME]/

    Please check here: https://djtechreviews.com/tag/ableton

    Thanks,
    Rory

    DJ Tech Reviews
    Rank Math pro
    Content AI Starter

    Hello,

    This still isn’t working – any other ideas?

    Many Thanks,
    Rory

    Hello,

    Since all you want is to redirect all tags URLs to homepage the following should work:
    img

    Hope this helps you. 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Regex redirects not working’ is closed to new replies.