svn commit: r1934878 - httpd/httpd/trunk/docs/manual/rewrite

[email protected]
Newsgroups gmane.comp.apache.cvs
Message-ID <178040497505.1917434.11463542737390301049@svn03-he-fi>
Author: rbowen
Date: Tue Jun  2 12:56:14 2026
New Revision: 1934878

Log:
Fix RedirectMatch regex in ACME exemption recipe (bug 70084)

The negative lookahead (?!...) is zero-width and non-capturing, so
the original pattern matched only the leading slash and \$1 was
undefined. Add a capturing group (.*)$ after the lookahead so that
\$1 contains the remainder of the URL-path.

Modified:
   httpd/httpd/trunk/docs/manual/rewrite/remapping.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/remapping.xml
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/remapping.xml	Tue Jun  2 12:45:04 2026	(r1934877)
+++ httpd/httpd/trunk/docs/manual/rewrite/remapping.xml	Tue Jun  2 12:56:14 2026	(r1934878)
@@ -221,7 +221,7 @@ RewriteRule "^(.*)" "https://%{SERVER_NA
     &lt;/Directory&gt;
 
     # Everything else goes to HTTPS
-    RedirectMatch permanent "^/(?!\.well-known/acme-challenge/)" "https://www.example.com/$1"
+    RedirectMatch permanent "^/(?!\.well-known/acme-challenge/)(.*)$" "https://www.example.com/$1"
 &lt;/VirtualHost&gt;
 </highlight>
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.