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
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

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.
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: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
If you do not mind me asking does the extension do actual 301 redirects or is it another format of redirecting through code?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
Thanks!
Who is online
Users browsing this forum: No registered users and 95 guests