Url使用两个查询字符串重定向htaccess

I have a query string like this:

product_details.php?id=17&name=dhruba

How do I change this to:

product_details/dhruba

Please explain me how to redirect id with title from database. I'm doing all my calculation using the id.

You will need a mod_rewrite rule in an .htaccess file, it should look something like this:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^product_details/(.*)$ product_details.php?name=$1
RewriteBase /

Although if you also require the ID I would recommend passing that as a parameter to the rewrite rule.