RewriteEngine On
RewriteRule ^.*a.html$ b.html [L]