From 606f242339dbb552782e2f85830767823bf1c2e4 Mon Sep 17 00:00:00 2001
From: Rich Bowen
Date: Tue, 2 Feb 2016 11:11:33 +0000
Subject: [PATCH] Resolves comment about how regex matches, at
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#comments_thread
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1728084 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/mod_rewrite.xml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index 2dd66a99b7..107a0f2bd5 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -570,7 +570,6 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
respectively.
Those that are special to mod_rewrite include those below.
-
API_VERSION
@@ -644,7 +643,6 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
(decoded), unlike most other variables below.
-
@@ -1062,6 +1060,13 @@ RewriteRule "^/$" "/homepage.std.html" [L]
%{HTTP_HOST}
, %{SERVER_PORT}
, or
%{QUERY_STRING}
variables respectively.
+ In any case, remember that regular expressions are substring
+ matches. That is, you don't need the regex to describe the entire
+ string, just the part that you wish to match. Thus, using a regex
+ of .
is often sufficient rather than .*
,
+ and the regex abc
is not the same as
+ ^abc$
.
+
Per-directory Rewrites
--
2.40.0