Redirect to new category name?

#628565
  • Resolved Anonymous
    Rank Math free

    Hello, I am launching a new website and I have my products at /products/{product-name}. My old site structure is /product/{product-name} (without the “s”). I installed RankMath and enabled the redirects module, but I am not sure how to set up the rule to point old traffic to the new structure. I believe I may need to use the RegEx option, but am not clear on how to write the source and destination structures. Please advise.

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

    Thank you for contacting Rank Math support,

    Please check the knowledge base article which can show you how to set up your redirections below: https://rankmath.com/kb/setting-up-redirections/

    Hope this helps and please don’t hesitate to let us know if you have any issues setting up the redirect.

    Thank you.

    Anonymous
    Rank Math free

    Thank you for the reply, but this does not help. I already went through the online documentation and video but I am having issues with the RegEx needed. The examples shown do not clearly depict the scenario I am encountering. This is why I opened a ticket. Please advise on what I needed to redirect users from /abc/{slug} to /xyz/{slug}

    Hello,

    Apologies for the inconvenience.

    In this case, you can setup a regex redirect with this structure:

    Source: products/(.*)
    Type: Regex
    Destination: https://yourwebsite.com/product/$1

    Please update the actual domain in the redirection.

    Hope that helps.

    Thank you.

    Anonymous
    Rank Math free

    Reinelle,

    Thank you. This answered my question and resolved my problem. The only thing I would add is to make sure you clear any caching you may have on your server to make sure the new redirects take into effect.

    Hello,
    
    You’re welcome.

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
    
    If you don’t mind me 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 do 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 ‘Redirect to new category name?’ is closed to new replies.