Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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 http://abcd.com/modulename/controller
Only need to display controller name instead of the module name.
You can add a URL Rewrite.
Go to Marketing/SEO & Search/URL Rewrites
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 /modulename/controller
Required, but never shown