Hi Everyone..

Hope you can help me with this...
I would like to rewrite this link

http://www.rajeevthomas.com/viewgall...?cid=6&pid=392

to this

http://www.rajeevthomas.com/viewgallery/6/392

Do I rewrite that like this?

RewriteRule ^viewgallery/([0-9]+)/([A-Za-z0-9-]+)?$ viewgallery.php?cid=$1&pid=$392 [NC,L]

Am I doing this right?

Thanks for any help..