Hi @mohanasundaram!
So my understanding is:
When your content authors are adding links to a component, the resulting link does not contain the required ".html" extension. Is that right?
In that case, there seems to be a flaw in your implementation of the link rendering.
In AEM, internal links to other pages are stored as a path to the page on the repository (e. g. /content/weretail/home) without an extension. When rendering such a link as part of your component implementation, you need to make sure to run the reference through the externalizer. That way, it will make sure to apply configured mappings and also add the extension.
If my understanding is correct, I highly recommend to fix the link rendering rather than trying to solve the symptom through additional mappings and rewriting.
Hope this helps!