Products (CGeCommerce) - Redirecting old product to new

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JimboDavies
Forum Members
Forum Members
Posts: 130
Joined: Fri Feb 25, 2011 3:58 pm

Products (CGeCommerce) - Redirecting old product to new

Post by JimboDavies »

We use CalGuys eCommerce suite extensively at www.stormforce.biz. We've been tweaking and modifying some of our products, and combining them into fewer pages for ease of navigation.

I've got a product (Let's call it A) which has been superseded by product B. Our site has many links to product A - as it is part of the Products Module we have to copy and paste these in (unless anyone has a better method!). If we disable product A, these result in an error page.

Is there a sensible way of handling this so I can put a redirect in place from Product A to Product B?

Thanks!

Jim
JimboDavies
Forum Members
Forum Members
Posts: 130
Joined: Fri Feb 25, 2011 3:58 pm

Re: Products (CGeCommerce) - Redirecting old product to new

Post by JimboDavies »

I should add - this is something we need to do for multiple products.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Products (CGeCommerce) - Redirecting old product to new

Post by paulbaker »

One solution would be to put redirects in your htaccess file fairly near the top:

Code: Select all

# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Post Reply

Return to “Modules/Add-Ons”