Advice on the correct redirect strategy

#331255
  • Resolved Gerrie Bezuijen
    Rank Math free

    Hi,

    I have a wine webshop.

    Since a year my strategy is to erase the wine year from the product url. Because this saves a lot of work. So then the wine year will be just a product attribute.

    Here comes the question.

    Old url:
    https://www.globalwineries.nl/product/henry-of-pelham-vidal-icewine-2017-20-cl (with year)

    This directs to new url:
    https://www.globalwineries.nl/product/henry-of-pelham-vidal-icewine-20-cl/ (without year)

    With a year past ofcourse I have lot of these types of redirections. Now I’m beginning to doubt is this is the right strategy. Maybe it’s better to give these old url’s (year included) a 410 code; so then google will take them out of the index after a while.

    In some situations a 2017 wine redirects to a 2018 wine and the 2018 wine is redirecting to an url without the year included in the url.

    I’m hoping you could give me strong advice in how to manage this redirection OR 410 strategy.

    Best, Gerrie

Viewing 5 replies - 1 through 5 (of 5 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting us.

    If those pages are well ranking, then you might not want to get them removed from the SERPs by setting up 410s or noindex tag.

    You may use REGEX redirections to redirect the URLs without the year in them. Please note that redirecting the URLs can also affect the rankings.

    However, if that’s not an issue, please set up a Regex redirection with the below values:

    Source: product/(.*?)[0-9]{4}(.*)
    Type: RegEx
    Destination: https://www.globalwineries.nl/product/$1$2

    The above redirection would redirect all product URLs having a combination of 4 numbers in them to the same URL without that number.

    Let us know how that goes.

    Thank you.

    Thanks for your answer.

    When I would use this regex redirection; would I then first need to delete all other ‘year’ redirections?

    Prabhat
    Rank Math agency

    Hello,

    Yes, it would be better to delete those redirections as multiple rules redirecting the same URL can result in the URL returning errors.

    I suggest you test this in a staging website first and if everything seems fine, push to the live website.

    Hope this helps.

    Thank you.

    Ok.

    My site is also translated to english and german.

    Then I would need to add these below as well I guess

    Source: product/(.*?)[0-9]{4}(.*)
    Type: RegEx
    Destination: https://www.globalwineries.nl/en/product/product/$1$2

    Source: product/(.*?)[0-9]{4}(.*)
    Type: RegEx
    Destination: https://www.globalwineries.nl/de/product/product/$1$2

    Best, Chris

    Hello,

    The redirect you have added should work on your site even without those translated destination URLs.

    The translation plugin should use the correct URL when the products are translated.

    I hope that helps.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Advice on the correct redirect strategy’ is closed to new replies.