fixes to config RE rewrite rules.