I've been using subdomain happily for several months for my group nodes, but would like to discontinue to improve SEO on them, to enable me to use global redirect, and to enable me to use ajax comments.

I can uninstall the module and revert the three patched files. Then I can update my pathauto settings for new nodes.

But I'll need a 301 redirect rule to keep my old links working. What would that look like?

I need to send subdomain.example.com/anything to example.com/~subdomain/anything

Would that look like this?

RewriteRule ^(.*).example.com/$ http://www.example.com/~%1/$1 [R=301]

That specific rule does not appear to be working. What would? THe goal is to keep all the old backlinks working for those stories.
//
I'll also need a separate rewrite rule that sends subdomain.example.com to www.example.com/blog/subdomain I'd copy and paste this one into my htaccess several times for each existing group that I have.

Thanks. This has been a great module, but the cons outweigh the plusses at this point.