Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redirect categories and products using .htaccess


sheepiedog

Recommended Posts

I am re-categorizing my store and would like to use .htaccess to redirect the removed pages

 

In my .htaccess I am using this line

 

Redirect 301 /index.php?cPath=104_105 http://www.dogshoppe.net/index.php?cPath=102

 

and it doesnt work. I have other lines in my htaccess from before oscommerce and redirected my .html pages to the oscommerce pages with no problem.

 

Can anyone help me out on why this isnt working and what it should read ?

Link to comment
Share on other sites

  • 3 weeks later...

I'm having the same problem - i guess the 'redirect' in .htaccess cant handle the '?cpath=x'.....

 

No idea - anyone that can help or knows?

Am searching google now - but no results (besides this post here :P)

 

Kind Regards,

Tom

Even in this dark place, yes, I am afraid of my own shadow.

 

 

 

Contributions | KnowledgeBase | osCommerce 2.2 pdf

Link to comment
Share on other sites

I'm having the same problem - i guess the 'redirect' in .htaccess cant handle the '?cpath=x'.....

 

No idea - anyone that can help or knows?

Am searching google now - but no results (besides this post here :P)

 

Kind Regards,

Tom

 

 

Maybe we need to first rewrite the url's so we dont have them with the '?' and '='

but 'mod_rewrite' looks like above my skilllevel. :s

 

But as i understand it - i think you can do it with :

 

rewriting the url ( ex. /index.php?cPath=104_105 ) to something like /index.php/cpath/104-105 and then REDIRECT that latest url to the one you need.. not sure if that works - gonna have to search on that 'rewriting' some more :s

Even in this dark place, yes, I am afraid of my own shadow.

 

 

 

Contributions | KnowledgeBase | osCommerce 2.2 pdf

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...