Routes are failing with a 404

Good day team!

I’m new to zend, and i’m creating an application with routing to access many pages
through the navigation, but when i start the application the home display with no error but when i click on the next page on the navigation menu i encounter error saying A 404 error occurred
Page not found.
The requested URL could not be matched by routing.
No Exception available

Can someone guide me in the process so i will be able to continue with my application thanks.

First of all, it would be better to create a new topic instead of hijacking another. I moved your question into a new topic for you.

What a 404 means is that you requested a URL which can’t be matched by the router. So it ends up at the not found handler and return the page you see. This can be caused by several reasons, but most likely your routes are not configured correctly.

We need more information than this to be able help you.

  • What router are you using?
  • Show the route configuration (of the failing routes).

In the mean time this might help you: https://docs.zendframework.com/zend-expressive/v2/features/router/intro/

@daniel
Do you create a zend-mvc application or a zend-expressive app? Do you work with a tutorial?