Posted - 12/07/2019 : 09:29:59
Hi, oftentimes because of a supplier issue, a product will change so significantly that it needs a new name, and a new product created in the Cart.
In the past, after creating the new product in the Cart, on the expired product's Admin page we clear the Sell Button checkbox, then add text and a link in the Long Description field to direct visitors to the new product URL.
Unfortunately Google continues to show high ranking results for those expired products - often for years. This brings a lot of new visitors to product pages with no Sell Button, and creates a lot of confusion.
1. Can anyone recommend the best .htaccess lines to redirect those visitors to the newer product URL?
From:
https://www.example.com/proddetail.php?prod=Expired-Red-Product
to:
https://www.example.com/proddetail.php?prod=New-Green-Product
Note: these URLs generally have long strings appended by the referring sites, so the redirects would need to keep those intact.
2. If there's a better way to accomplish this, or if there are any potential pitfalls, best practices, etc., for this type of change we'd be grateful to hear.
Thank in advance.
- Paul D.
|