Post by protechtrader » Tue Sep 09, 2014 11:06 pm

Hello,

I am looking for some help as I have searched and read many pages on this and I can not get a 301 redirect to work in my htaccess file for a opencart product to another product. This is a live site and htaccess is working fine otherwise and I have used 301s before without a problem, but I can not get a Opencart product to redirect to another like in this example:

I want to redirect:
www.domain.com/productA

to:
www.domain.com/productB

I have also tried the non SEO friendly url such as redirecting:
http://www.domain.com/index.php?route=p ... ct_id=1111

to:
www.domain.com/productB

I have tried about 15 different 301 formats I have found on these forums with no luck. Can anyone show me how to do it with the example product to product above? I have OC 1.5.6

Newbie

Posts

Joined
Fri Nov 01, 2013 12:20 am

Post by Dhaupin » Wed Sep 10, 2014 2:31 am

What you could try is making the redirect urls look like this and it MAY work for you :)

from:
http://www.domain.com/index.php?_route_=productA

to:
http://www.domain.com/productB


We ran into the same thing, 301's were turning into 4 line nightmares and seemed to be different on every install. Its something to do with the way SEO urls are made and how the server handles install spot i suppose. The SEO urls use a utility URi of _route_= (notice underscores) that is different from the normal URi route=. I dont even know what 301 system in ht works best at this point because they are all hit and miss. We had to use 3 styles in ours to capture all the different schemas. Ended up deleting them all and buying an extension to save hours of messing with finicky OCht.

This extension is awesome for making redirects. At the moment it doesnt support "conditional" http/https, but other than that its perfect, wildcard support, csv, timers, counters, etc:
http://www.opencart.com/index.php?route ... on_id=5388

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA

Post by protechtrader » Wed Sep 10, 2014 6:11 am

Dhaupin wrote:What you could try is making the redirect urls look like this and it MAY work for you :)

from:
http://www.domain.com/index.php?_route_=productA

to:
http://www.domain.com/productB
Could you possibly give me a example? I ask as I do not know if you mean with "rewriterule" or "redirect 301" as well as I am worried I could be coming across formatting issues as well.

Dhaupin wrote: This extension is awesome for making redirects. At the moment it doesnt support "conditional" http/https, but other than that its perfect, wildcard support, csv, timers, counters, etc:
http://www.opencart.com/index.php?route ... on_id=5388
If you do not mind me asking does the extension do actual 301 redirects or is it another format of redirecting through code?

Thanks!

Newbie

Posts

Joined
Fri Nov 01, 2013 12:20 am

Post by Johnathan » Wed Sep 10, 2014 11:47 pm

The Redirect Manager extension is mine, and it uses PHP to perform valid 301 redirects.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 17 guests