On Thu, Feb 5, 2026 at 12:14 PM Ineiev <[email protected]> wrote:
>
> 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

I find it surprising that it includes the query.  Both modules are
finding their way to the same internal value in slightly different
ways: 
https://nightlies.apache.org/httpd/trunk/doxygen/structrequest__rec.html#a200869c456b0bd046a32942f9ff51af4

Is there any kind of URL manipulation prior to hitting the SSI?
Possibly you are seeing the decoded form of something that was
encoded/re-encoded as e.g.  /foo%3fbar?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to