I have many category and product URLs coming from google which gives 404 errors. The reason is google has indexed most of the pages without .html (from old site) while now I have all the pages with .html suffix. Is there anyway, without creating thousands of Catalog URL Rewrites, I can check as per the below rules?
http://www.example.com/this-is-bad => http://www.example.com/this-is-bad.html
http://www.example.com/this-is-bad.html => standard 404 error page
http://www.example.com/this-is-good => nothing to do, CMS page, already working
http://www.example.com/this-is-good/ => nothing to do, already working
http://www.example.com/this-is-good.html => nothing to do, already working
So if you have noticed, I only want to redirect without-.html 404 link TO with-.html valid link. But also not to mess with working without-.html CMS pages.
Is it even possible with just .htaccess? Or how to approach this?
I'm using Enterprise 1.13 version on apache server, if this helps.
THANKS!