I\'m working on a site, and its CMS used to save new page urls using the underscore character as a word seperator.
Despite the fact that Google now treats underscor
Just take the rule you were using already:
RewriteRule ^([^_]*)_([^_]*_.*) $1-$2 [N]
RewriteRule ^([^_]*)_([^_]*)$ /$1-$2 [L,R=301]
…and put it before all other rewrite rules, and everything should work.
Also, you used RewriteBase / twice. You can omit it the second time, since it’s already defined.