php - How to pass multiple parameter in .htacess -


i have url want rewrite can pass parameter

from www.example.com/questions.php/postid=101&title=htaccess_tuts

to www.example.com/questions.php/postid/1/title/htaccess_tuts

i have been trying done using below .htaccess end getting this

from www.example.com/questions.php/postid=1&title=htaccess_tuts

to www.example.com/questions.php/postid/101

the title part didn't show. can me pass multiple parameter

rewritebase / #options +followsymlinks -multiviews rewriteengine on   rewritecond %{request_filename} !-f rewriterule ^([^\.]+)$ $1.php [nc,l]   #here problem have don didn't work #rewritecond %{the_request} ^[a-z]{3,}\s/+questions\.php\?postid=([^\s&]+)&([^\s&]+) [nc] #what can again? rewritecond %{the_request} ^[a-z]{3,}\s/+questions\.php\?postid=([^\s&]+) [nc] rewriterule ^ questions/%1? [r=301,l] rewriterule ^questions/([^/]+)/?$ questions.php?postid=$1&title=$2 [l,qsa] 

rewriteengine on rewriterule ^questions\.php/postid/([^/]*)/title/([^/]*)$ /questions.php?postid=$1&title=$2 [l] 

you can use this site generate rewrite rules


Comments