Need help with an 301 htaccess redirect rule doing the following for all the files in these paths:
I want to redirct this URLs <http://www.example.org/archives/xxxxx> to <http://www.example.org/?=xxxxx>

Have to remove /archives and add ?= to URL with random numbers got form old URLs.

(xxxxx is random number )

Really appreciate for the help.