I have created a new module with my custom route. The frontname for my module is
vendor and the id is
I have created a page with route
vendor/index/index, created a controller and block for my page. I have also created a layout file with name frontend/layout/vendor_index_index.xml
But when I try to access my page on frontend with url
vendor/index/index it shows me 404 page. The page works if I use
I am not sure about the issue as I have other modules with custom routes and they work perfectly fine without
I have checked and made sure that I have URL rewrite enabled in my configuration. Did anyone face any issue like this? What could be the reason and the solution for the issue?