Issue in Redirection

#972764
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the redirection of your product URLs. To set up the redirection from your old URLs to the new ones in Rank Math, you can follow these steps:

    1. Go to Rank Math Dashboard: Navigate to the Rank Math plugin in your WordPress dashboard.
    2. Redirections: Click on the "Redirections" option in the Rank Math menu.
    3. Add New Redirection: Click on the "Add New" button to create a new redirection.
    4. Set Up the Redirection:
      • In the Source URL field, enter the old URL structure. For your case, it would be something like:
        /product/food/shawarma/(.*)
      • In the Destination URL field, enter the new URL structure:
        /product/$1
    5. Select Redirection Type: Choose the type of redirection (301 for permanent redirection is recommended).
    6. Save Changes: Finally, save the changes.

    If you are still having trouble, please check if there are any conflicting plugins or caching issues that might be affecting the redirection. You can also use the Redirection Debugger feature in Rank Math to diagnose any issues further.

    If you continue to experience problems, please reply to this ticket with your website URL so that a human agent from our support team can assist you further. Thank you for raising this concern!

    Sources:
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Please try to use the following regex redirection on your website and see if that works for you:

    Source: ^product/food/shawarma/(.*)
    Match: regex
    Destination: /product/$1
    

    Here’s how you can set a regex redirection on your website: https://rankmath.com/kb/how-to-use-regex-redirects/

    However, please note that you’ll have to add multiple regex redirections for each of your categories.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

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

You must be logged in to reply to this ticket.