Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
Apache Web Server
12:01 am Jul 31, 2026
This page requires javascript.
Forum Moderators:
phranque
Message Too Old, No Replies
referencing environment variables in mod_rewrite directives
Wolli
Msg#:4923036
5:29 pm on Oct 7, 2018
(gmt 0)
Hi,
in rewrite-rules I can adress $_SERVER-Variables by %{'VARNAME'}.
How can I adress $_ENV-variables?
lucy24
Msg#:4923053
9:54 pm on Oct 7, 2018
(gmt 0)
They do hide it in the docs, don’t they? It’s
%{ENV:variable}
where “variable” is, as you would expect, the name of the variable.
:: quick detour to make sure 2.2 and 2.4 are the same ::
phranque
Msg#:4923242
8:03 pm on Oct 8, 2018
(gmt 0)
this is documented here:
https
://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Jun
,
May
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
July 2026 Google Search Observations
Google hit with $1 billion EU fine for breach of the digital act
Do LLMs actually read your schema?
Annoying Crawler, Bot, or what?
Do you still build external links in 2026?
Google started experiment; auto optimise turned off
SkypeUriPreview - links pasted into MS 365 Outlook
Home
Forums Index
Server Side
/
Apache Web Server
12:01 am Jul 31, 2026