5
I am studying URL friendly, and in many examples I came across these two forms of writing:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
and
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
What is the difference between them? Looking at the Apache documentation I understood that they are the same thing. Did I get it right?
The value is the same, in principle. REQUEST_FILENAME is to make pair as REQUEST_URI, I never saw anything talking about any case that was not the same value. In theory, they point to the same internal structure of Apache. I have no idea why I have both. I would have to look at old documentation to see if before it was just SCRIPT_FILENAME, then it would make sense a new "nickname" later, to combine with REQUEST_URI, as I commented. However, it is a legitimate doubt.
– Bacco
Thank you so much for helping @Bacco :D
– AntonioSantos