parameter passing - URL rewritting in PHP Using .httaccess -


i hope doing good. have url www.test.com?id=other-flavor&pid=hannycakes.

i did above url www.test.com/other-flavor$pid=hannycakes using .htaccess need www.test.com/other-flavor/hannycakes.

for if use / in url can take folder 1 can me how resolve problem.how put / in url.

thanks,

try this:

rewriteengine on rewriterule ^([^/])/([^/])$ /?id=$1&pid=$2 [l]


Comments