Directory hierarchy after index.php
I believe this might be a lame question, but I found this url:
http://www.trickingpt.com/index.php/componentes/componente-artigos/tricks/basicmoves?id=125
The question is simple:
How is it possible for the url to have a folder hierarchy after the php file and then a get parameter?
At first I thought it would be some kind of trick script that I didn't know, but then I noticed this on the page that leads to the other one mentioned above:
href = "/index.php/Componentes/artigos- component explorer / focuses / basicmoves? id = 125"
Thanks in advance.
source to share
It's pretty straightforward. index.php
uses $_SERVER["PATH_INFO"]
to read the requested path (the part after index.php) and then executes the appropriate code to return the response.
Most likely the linked website uses a framework that processes these URLs and routes the paths of this folder hierarchy to the appropriate controllers. For example, the Kohana structure .
source to share