Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Frustrating Product Redirect Via .htaccess Problem


Beachdog

Recommended Posts

Posted

Just switched from a PayPal solution to osCommerce, and am trying to redirect from the original product pages (in a domainname.com/pages/blah.html format) to osCommerce pages. Here's what I have in the .htaccess:

 

RedirectMatch permanent ^/pages/cat_oldproductpage.html$ http://www.domainname.com/index.php?cPath=21_43_42

 

What I'm getting back is the following:

 

The requested URL /index.php?cPath=21_43_42 was not found on this server.

 

The page IS there; however, when I look at the address bar I see

http://www.domainname.com/index.php%3fcPath=21_43_42

 

Apparently the question mark is getting changed to a %3. How do I resolve this? I searched far and wide and am not finding anything that mentions this problem, but I'm having a hard time believing that I'm the first to run into this.

 

Thanks for the help.

Posted

Hey there! Why are you adding in the cPath?

 

The only thing I know for sure is redirecting to directories - it's urlencoding the result that's the problem.

Nothing unreal exists

Posted

I was trying to link to a product category, but even linking to a specific product is getting urlencoded. How do I prevent that urlencoding that is turning a question mark into a %3f?

 

Thank goodness I'm bald, otherwise I'd be pulling my hair out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...