php - Update url with htaccess -


i want change formatting of url:

~/index.php/user/category_grid/?id=4&name=%27door%20knobs%27 

to

~/index.php/user/category_grid/4/door knob 

how can accomplish this?

here example of rewrite rule transform url

rewriterule index.php/user/category_grid/([-\w]+)/([-\w]+)/?$   index.php/user/category_grid?id=$1&name=$2 [l]           

Comments

Popular posts from this blog

javascript - How to update a get parameter in a url with jquery -

c - Run time Error with scanf -

amazon web services - How to determine the state of an AWS instance -