Forum Moderators: phranque
You will need to do one of three things: Either modify the shopping cart, add a "wrapper" script around it and modify your .htaccess file or server config file to call the wrapper instead of calling the cart directly, or use a RewriteMap (see Apache mod_rewrite) to call a mapping script (e.g. written in PERL) to access the cart database, look up the product id, and then call the cart with that id. This last solution requires access to the server config files, and will not be available on shared hosting.
None of these solutions are simple, and none are easy enough to handle in a discussion forum context. I suggest that you hire a local consultant to make these changes if you do not feel comfortable enough to do them yourself.
It is also possible that you may be able to buy a "plug-in" for the cart which will do what you want. I suggest researching this at the cart-makers site, and also on any forums dedicated to your specific cart.
Jim
I think i need to more descriptive. Its a simple php site with listing of products and product details page.
1. The first page is the product listing page based on a category say product_list.php
the url to this page is www.domain.com/product_list.php?cat=2 (suppose cat is the category id, and name of category is audio)
I want the url to be www.domain.com/audio/
2. The 2nd page is product details page of a specific product say product_details.php
the url to this page is www.domain.com/product_details.php?prd=celina ( suppose prd is product name, which falls in category audio)
The url to this page should be www.domain.com/audio/celina/
I think this makes sence.
Thanks
Jim
Similarly for produt details the page i can send for is product_details.php?cat=audio&prd=celina
and the url should be www.domain.com/audio/celina/