From: Rich Bowen Date: Fri, 14 Jan 2011 16:27:15 +0000 (+0000) Subject: Rebuild transformations. X-Git-Tag: 2.3.11~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01e65af71221d4f57ac905647bd12ccbc5cfee11;p=thirdparty%2Fapache%2Fhttpd.git Rebuild transformations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059059 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index cd4118dd267..ebc9de0369f 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -602,6 +602,17 @@ RewriteRule ^index\.html$ newsite.html

If the TestString has the special value expr, the CondPattern will be treated as a ap_expr.

+ +

+ In the below example, -strmatch is used to + compare the REFERER against the site hostname, + to block unwanted hotlinking. +

+ +

+ RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"
+ RewriteRule ^/images - [F] +

  • You can also set special flags for