Redirection not working

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

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

    Rank Math for now doesn’t support redirections with query parameters. We are working on an update where it will work but for now, you will need to use another redirections plugin to redirect those URLs (or use .htaccess).

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thanks. Can you share me a sample htaccess code for the query string url?

    Hello,

    You can customize and use the code below accordingly.

    # Redirect Query String
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteCond %{QUERY_STRING} key=value
    	RewriteRule (.*) /path/ [R=302,L]
    </IfModule>

    Hope that helps.Thank you.

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

You must be logged in to reply to this ticket.