Redirecting all products from old category URL

#652388
  • Resolved Anonymous
    Rank Math free

    Hi I have changed a category permalink from /shop/disposables/ to /shop/disposables-vapes/, and I have noticed a lot of new indexing issues in search console (Alternate page with proper canonical tag)

    I saw a lot of them are the old URL and wanted to redirect all the products under the old URL to the new URL using regex and it is not working.

    Here is my regex configuration:
    /shop/disposables/(.*)
    to
    /shop/disposables-vapes/$1

    This is supposed to redirect any products from the old category URL to the new category URL.

    Can you tell me what’s wrong?

Viewing 1 replies (of 1 total)
  • Hello,

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

    Please try to remove the first forward slash from the destination URL and set this like this one:

    Destination URL: shop/disposables/(.*)
    

    Once done, please head over to your WordPress dashboard > Settings > Permalinks, and hit the “Save Changes” button (without making any changes) to clear the permalink cache and see if that works for you.

    If the issue persists, you can share a screenshot of the exact redirection you’ve created on your website. You can use any image-sharing tool like https://imgur.com/upload to share the screenshot with us.

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

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Redirecting all products from old category URL’ is closed to new replies.