i want to change the link looking like
http://localhost/mysite/product?name=trouser
to
http://localhost/mysite/product/trouser
and this one below
http://localhost/mysite/article?title=this%20is%20 new%20product
to
http://localhost/mysite/article/this-is-new-product
help me please because when i use a str_replace it work but noresult is displayed
.htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
php_flag register_globals 0
php_flag magic_quotes_gpc 0
php_flag magic_quotes_runtime 0