Q:

correct format of URL rewrite in php

i'm asking about htaccess url rewrite ( mod_rewrite )
actually i want to change below URL
http://localhost/project/cms/edit_item.php?id=MYc= ( actually this is base 64 encoded)
to
http://localhost/project/cms/edit_item.php/id/MYc=

i do it like this on .htaccess file
RewriteEngine on
RewriteRule ^([\-_0-9A-Za-z]+)$  edit_item.php?id=$1 [L]

and save this on project folder
but URL didn't modified
please suggest me how to do it

A:

RewriteCond %{QUERY_STRING} id=(.+)
RewriteRule (edit_item.php) $1/id/%1?

