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

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -