Post by p419 » Tue Feb 12, 2019 10:56 pm

Hello Everyone,

We're preparing to migrate from Zen Cart 154 to Open Cart 3.0.3.1 and we have approximately 1750 products, the product IDs match in both stores. We use native urls in Zen but would like to switch to seo URLs in Open Cart. The store will be in the root folder.

What's the smartest and least risky way to execute the 301 redirect?

Any help would be appreciated. Thanks!

Regards,

Paul


New member

Posts

Joined
Tue Nov 27, 2018 2:01 am
Location - Toronto

Post by straightlight » Tue Feb 12, 2019 11:52 pm

By using Cart2Cart extension module or with the PDO extension with limited queries running sequentially. The last resort would be by creating a new service request in the Commercial Support section of the forum to get this done as a custom job.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by p419 » Thu Apr 18, 2019 9:00 am

Hello,

We're attempting to migrate from Zen Cart to Open Cart. We use native urls (products_id=1) in Zen but will be using seo URLs in Open Cart. The store will be in the root folder. This is the redirect we're trying to use:

RewriteCond %{QUERY_STRING} products_id=1$ [NC]
RewriteRule ^(index\.php)?$ https: // www. the web site .ca/bw-10-printed-envelopes [R=301,L]

This page does redirect to the Open Cart product page but the url includes information from the Zen Cart site as shown here:
https: // www. the web site .ca/bw-10-printed-envelopes?main_page=product_info&cPath=8_1_381&products_id=1

Can anyone give us an idea what might be causing this?

Any help is appreciated. Thanks.

Regards,

Paul


New member

Posts

Joined
Tue Nov 27, 2018 2:01 am
Location - Toronto

Post by letxobnav » Fri Apr 19, 2019 2:21 am

you were planning to use 1750 redirect statements, one for each product, am I correct?

Crystal Light Centrum Taiwan


Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm

Post by letxobnav » Fri Apr 19, 2019 2:27 am

if so, you can just use:

Code: Select all

	RewriteCond %{REQUEST_URI} product_id=1
	RewriteRule .* https://www.thewebsite.ca/bw-10-printed-envelopes [R=301,L]

Crystal Light Centrum Taiwan


Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm

Post by p419 » Thu Apr 25, 2019 3:20 am

Thanks letxobnav! I'll give this a try.

Regards,

Paul


New member

Posts

Joined
Tue Nov 27, 2018 2:01 am
Location - Toronto

Post by lovenatural » Fri Apr 26, 2019 2:24 am

when i was moving from zencart to opencart 3 years ago i managed to preserve my seo urls by using OCSEO extension, no redirect were needed.

New member

Posts

Joined
Sat Aug 08, 2015 12:04 am

Post by letxobnav » Fri Apr 26, 2019 2:33 am

he is not using SEO url's now.

Crystal Light Centrum Taiwan


Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Who is online

Users browsing this forum: No registered users and 4 guests