$N
|
RewriteRule backreferences
(0 <= N <= 9) which provide access to the grouped parts (parenthesis!)
of the pattern from the corresponding RewriteRule directive (the one following
the current bunch of RewriteCond directives).
|
%N
|
RewriteCond backreferences
(1 <= N <= 9) which provide access to the grouped parts (parentheses!)
of the pattern from the last matched RewriteCond directive in the current bunch
of conditions.
|
%{HTTP_USER_AGENT}
|
HTTP header: HTTP_USER_AGENT
Windows XP home edition, Firefox 1.07:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Windows XP home edition, Internet Explorer 6.0.29:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Feedreader; .NET CLR 1.1.4322)
|
%{ HTTP_REFERER}
|
HTTP header: HTTP_REFERER
|
%{HTTP_COOKIE}
|
HTTP header: HTTP_COOKIE
|
%{HTTP_FORWARDED}
|
HTTP header: HTTP_FORWARDED
|
%{HTTP_HOST}
|
HTTP header: HTTP_HOST
If URL = https://www.mobilefish.com/home/index.html
HTTP_HOST is: www.mobilefish.com
|
%{HTTP_PROXY_CONNECTION}
|
HTTP header: HTTP_PROXY_CONNECTION
For example: text/xml, application/xml, application/xhtml+xml, text/html; q=0.9,
text/plain; q=0.8, image/png, */*; q=0.5
|
%{HTTP_ACCEPT}
|
HTTP header: HTTP_ACCEPT
|
%{REMOTE_ADDR}
|
Connection & Request: REMOTE_ADDR
|
%{REMOTE_HOST}
|
Connection & Request: REMOTE_HOST
|
%{REMOTE_USER}
|
Connection & Request: REMOTE_USER
|
%{REMOTE_IDENT}
|
Connection & Request: REMOTE_IDENT
|
%{REQUEST_METHOD}
|
Connection & Request: REQUEST_METHOD
|
%{SCRIPT_FILENAME}
|
Connection & Request: SCRIPT_FILENAME
|
%{PATH_INFO}
|
Connection & Request: PATH_INFO
|
%{QUERY_STRING}
|
Connection & Request: QUERY_STRING
|
%{AUTH_TYPE}
|
Connection & Request: AUTH_TYPE
|
%{DOCUMENT_ROOT}
|
Server Internals: DOCUMENT_ROOT
|
%{SERVER_ADMIN}
|
Server Internals: SERVER_ADMIN
|
%{SERVER_NAME}
|
Server Internals: SERVER_NAME
|
%{SERVER_ADDR}
|
Server Internals: SERVER_ADDR
|
%{SERVER_PORT}
|
Server Internals: SERVER_PORT
|
%{SERVER_PROTOCOL}
|
Server Internals: SERVER_PROTOCOL
|
%{SERVER_SOFTWARE}
|
Server Internals: SERVER_SOFTWARE
|
%{TIME_YEAR}
|
System Stuff: TIME_YEAR
|
%{TIME_MON}
|
System Stuff: TIME_MON
|
%{TIME_DAY}
|
System Stuff: TIME_DAY
|
%{TIME_HOUR}
|
System Stuff: TIME_HOUR
|
%{TIME_MIN}
|
System Stuff: TIME_MIN
|
%{TIME_SEC}
|
System Stuff: TIME_SEC
|
%{TIME_WDAY}
|
System Stuff: TIME_WDAY
|
%{TIME}
|
System Stuff: TIME
|
%{API_VERSION}
|
Specials: API_VERSION
|
%{THE_REQUEST}
|
Specials: THE_REQUEST
|
%{REQUEST_URI}
|
Specials: REQUEST_URI
|
%{IS_SUBREQ}
|
Specials: IS_SUBREQ
|
%{HTTPS}
|
Specials: HTTPS
|