mercredi 20 janvier 2021

Is "http://.../?var=..." same as "http://.../index.php?var=..."

Suppose I have a Lighttp server with the default preset and PHP enabled. The server is running on the Linux machine and has only one file (index.php) in the /var/www directory. With that being said, will those two requests:

  1. http://website.com/?var=1
  2. http://website.com/index.php?var=1

produce an identical output? Could they be treated as the same request (in this exact case)?




Aucun commentaire:

Enregistrer un commentaire