Please help me. I need to rewrite this url
http://example.com/topusers.php?sort=post_count&time=month
into this style
http://example.com/top/post_count/month
I'm using this in .htaccess but when I visit example.com/top, it shows 404 Not Found.
RewriteRule ^top/([^/.]+)?/?(.*)$ topusers.php?sort=$1&time=$2
It needs to be accessible via example.com/top too, because I've set default values if sort and time are not set via URL.
Thank you.