conditional redirect

#260664
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Unfortunately, the Rank Math Redirection module doesn’t support yet redirecting URLs with query parameters. Our dev team is working on adding this, and hopefully should be added soon. You can check our updates at this link: https://rankmath.com/changelog/

    In the meantime, you may need to use .htaccess redirects or a separate plugin that allows this.

    I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.

    Can you please assist with the needed .htaccess code I need to add ?

    Thanks!

    Hello,

    Please use the code given below in your .htaccess file to redirect the URLs with the query strings:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{QUERY_STRING} \\?s=([^&]+) [NC]
    RewriteRule ^$ /search/?q=%1/? [NC,R,L]
    </IfModule>

    Hope this helps. Let us know if you need any other assistance.

    Works like a charm.
    Your support is highly professional and very much appreciated!!

    Hello,

    We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

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

    Thank you.

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

The ticket ‘conditional redirect’ is closed to new replies.