rewrite - How to convert query string to url names -


my url ..../blogs?id=1&title=news

now need covert to

..../blogs/1/news 

in .htaccess.

please how convert this. me.

use these lines:

rewriteengine on rewriterule ^blogs/(.+)/(.+)$ /blogs.php?id=$1&title=$2 [r,l,qsa] 

Comments

Popular posts from this blog

javascript - Complete OpenIDConnect auth when requesting via Ajax -

c# - Replace text in MailItem Body -

apache - PHP Soap issue while content length is larger -