Clean URL with .htaccess

I am a beginner of PHP language. I create a site with PHP MYSQLI, where i have a link like this > http://www.exquisitezone.com/details.php?pro_id=61=Silk%20flowers and the php code is kind of like this

details.php?pro_id=$pro_id=$pro_title
the URL looks really dirty. the php code is kind of like this
details.php?pro_id=$pro_id=$pro_title

But i want this url like this http://www.exquisitezone.com/details/61/Silk-flowers

I tried with .htaccess code

RewriteEngine on
RewriteCond %{REQUIEST_FILENAME} !-d
RewriteCond %{REQUIEST_FILENAME} -f
RewriteRule ^artificialplants/([0-9]+)/([0-9a-zA-Z_-]+)/details.php?pro_id=$1=pro_title=$2 [NC,L]

It’s not working ! I think i am missing something . Please help me

First, you need to change the url that you are sending users to. htaccess doesn’t change that, it just allows the site to find what you actually mean.

Sponsor our Newsletter | Privacy Policy | Terms of Service