does REQUEST_URI exclude QUERY_STRING?

Ineiev <[email protected]> Thu, 5 Feb 2026 17:13:09 +0000
Newsgroups gmane.comp.apache.user
Message-ID <aYTPpVVjfE0E0XWY@manas>
--UQKGJ8g3Puks8q1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello,

The documentation [0] suggests it doesn't,

    REQUEST_URI
    The path component of the requested URI, such as "/index.html".
    This notably excludes the query string which is available as
    its own variable named QUERY_STRING.

However, when I write a file like,

  <html><head><title>t</title></head><body>
  <pre><!--#echo encoding='none' var='REQUEST_URI' --></pre>
  </body></html>

and try URLs with a query string, I can see it in the output.
(I haven't installed Apache from its sources, I use apache2
2.4.52-1ubuntu4.18+11.0trisquel3 coming with my distro.)

Does [0] refer to anything different (like Apache configuration
as opposed to SSI variables in the served files)?  May my server
be misconfigured?  Do I do anything else wrong?

[0] https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html

--UQKGJ8g3Puks8q1L
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFPBAEBCAA5FiEEvZ1N7nsv8cvvLuDE4KzT4Mvnh0oFAmmEz6AbFIAAAAAABAAO
bWFudTIsMi41KzEuMTEsMiwyAAoJEOCs0+DL54dKWeYH/jbjmvuNbhv349zCkSgv
E8B9tIeBzsqFcA6QexE1ktaDKpIztHu0iYAwMWpiK71IjtEa5K6oXZpSbm30pgXT
gvKrxPDTZA6af/HsqDx0IMg5/rj1M6VoqnfswPLuOK71kKKGTK68aOtrmq7mddne
uQQrONVb2ccMh6XGw7Y0FEvf0XTCy2tBzdydEoTp4KQF3bk8F4LyjF+yKBG9Qmh9
jYG9UFSY1D4CJBx7r3/PwiQKIW4+q9vyosW52L4EyFW+jTDAS04qBewgUXwLW5x3
O+tbdlv+EDw9l6lEWcXsyo4bFpZOrfSmIImTInLxKvB6y52CPMgO5n0vamKLyUIA
Bic=
=ksgd
-----END PGP SIGNATURE-----

--UQKGJ8g3Puks8q1L--