What allows a simple routing system?

With 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:

  1. Scheme 
  2. Domain 
  3. Request URI.  

To implement simple routing, we need to match the request URI and implement a logic that will be 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.