I want to rewrite
www.example.com/story.php?id=123&title=abc&cat=sports
to
www.example.com/story/123?title=abc&cat=sports
and i have used
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
its not working.