7

When looking at a SSI printenv dump I see a variable URI_REQUEST.

When reading the Apache mod_include docs I see DOCUMENT_URI which they define as "The (%-decoded) URL path of the document requested by the user."

Anyone know the difference between the two?

TIA.

Rob Wells
  • 36,220
  • 13
  • 81
  • 146

1 Answers1

2

REQUEST_URI includes the Query String (?q=testing...) where DOCUMENT_URI does not.

Allain Lalonde
  • 91,574
  • 70
  • 187
  • 238
  • 4
    There are some other differences: for example, if some rewrite rules occur (without the proxy option), REQUEST_URI contains the genuine URL, DOCUMENT_URI the rewritten one. – Dereckson Feb 16 '18 at 22:59