I want to rewrite following url,
http://example.com/widgets/search.js?id=qerwtwttw45777
as follows,
http://example.com/widgets/search/qerwtwttw45777
and tried following rule in htaccess,
RewriteEngine on
RewriteBase /
RewriteRule search/(.*)/$ /widgets/search.js?id=$1
but it fails and showing
**500 Internal Server Error**
Anybody help to solve this problem. Thanks