Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Clear URLs


neko

Recommended Posts

Posted

Hello!

 

I was wondering if there's a way to force osCommerce to display clearn URLs. For example: instead of returning an URL such as:

 

http://www.sitename.org/product_info.php?products_id=2775

 

I'd like to know if it's possible to have osCommerce output something like this instead:

 

http://www.sitename.org/products/Name-of-Product

 

where "Name-of-Product" is the actual name of the item displayed.

 

Right now I'm evaluating a CMS and this system boasts a feature like the above one. It's achievable by tweaking the .htaccess file. But since I'm not proficient with .htaccess I was wondering is the above is possible and how.

 

Thanks in advance for your reply.

 

~Neko

Posted

Neko -

 

This could be done, but it would not be a simple modification.

 

It may be something you could do with relatively little pain with a single page, like product_info.php; but a system-wide change to name rather than number references would be, I believe, a real hair-puller.

 

Michael

Posted

A populare contribution that works for me is:

 

SEF Link Transformer

 

I am definately not the author, but I love the contribution and would highly recommend it.

You can see it in action on my site: http://www.pawstoshop.com/product2275/product_info.html

 

Spoot is correct when he says the changes are extensive, especially if you plan to hardcode everything manually. Try the contribution above on your test server. It took me only a few minutes to install.

 

Robert

Archived

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

×
×
  • Create New...