Re: Header set Link?

Eric Covener <[email protected]>
Newsgroups gmane.comp.apache.user
Message-ID <CALK=YjM899N1sp2Ky1kJ1Fr4NybH6pz77wMNuCmDfT9Zms_ZEw@mail.gmail.com>
> Header add Link "<https://%{HTTP_HOST}e%{REDIRECT_PDF_CANONICAL_URL}e>; rel=\"canonical\"" env=REDIRECT_PDF_CANONICAL_URL

> However, the %{HTTP_HOST} variable doesn't seem to be set.

I don't think you can expect that environment variable to be defined.
Maybe you want to switch the value argument to use expr= syntax
instead so you can use more built-in values.

> Can you explain where the REDIRECT_ is defined?

If the request has been internally redirected, all of the original
environment variables from before the internal redirect are prefixed
with REDIRECT_
One example of an internal redirect is the result of rewriterule in
htaccess  w/o [R] flag.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.