Rank Math Regex Redirections – match everything except certain pages

#307904
Viewing 5 replies - 1 through 5 (of 5 total)
  • Azib Yaqoob
    Rank Math business

    Hello,

    Thanks for contacting us!

    Regex or Regular Expressions are powerful but complex topics. Even a small mistake in the expression can lead to undesirable results.

    However, if you find a pattern in the URLs that you need to redirect, then you may also consider using the Contains option in the Source URL field. https://i.rankmath.com/VrbUEM

    For more details, please refer to our tutorial guide: https://rankmath.com/kb/setting-up-redirections/#contains

    Hope this helps.

    Thanks!

    Hi Azib,

    Thank you, but I need the opposite rule to “Contains option”.
    For example to redirect everything that IS NOT contain a specific pattern.
    Is it possible using RM?

    Hello,

    Unfortunately, we don’t have that kind of condition type in our redirection rule.

    This may require you to further extend the redirection rule over .htaccess.

    Hope this helps you with your situation.

    Looking forward to helping you.

    Hello,

    Thank you in advance.

    Azib Yaqoob
    Rank Math business

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Rank Math Regex Redirections – match everything except certain pages’ is closed to new replies.