With a routing system, you can split the different pages and handle these pages individually. Let’s find out what this URL is before we start to code.
URL consists of three parts:
- Scheme
- Domain
- Request URI.
To implement simple routing, we need to match the request URI and implement a logic responsible for processing this request URI. So, we can build as many pages as we need to, and each page will proceed by a separate PHP function or a road. Finding the right road for the request, URI is called a road, also known as dispatching a road.
Learn more in the video.