My question is similar to, but not a duplicate of, .htaccess RewriteRule change underscore to dash
I'd like to re-write urls of this style:
http://example.com/?any_var=any_val
to this style:
http://example.com/any-var-any-val
The actual value of the QS does not need to be preserved. These should be 301 permanent re-directs. If there were a second QS variable, I could be appended or ignored.
I can't "show my code" because I don't know where to start. I've seen plenty of apache mod_rewrite q/a and samples, but none that help me in this specific situation.
I re-built this site on Wordpress and just named each page similar to how it was linked before, figuring I'd be able to do the re-directs later. That "later" is now.
Alternative solution: I could edit index.php and add a location header for each of the old pages, or do similar in .htaccess instead of trying to do the pattern match / replace, but I still need help dealing with these Query Strings.