Is it possible to remove module name through htaccess or any other way around to hide module name from url of magento 2 .i.e
Only need to display controller name instead of the module name.
You can add a URL Rewrite.
Marketing/SEO & Search/URL Rewrites
Then create a new rewrite, put in correct request path, which should be the path to your desired new path, and target path should be the path to your module's controller