]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Correct regex backreference in ACME RedirectMatch bz#70084
authorRich Bowen <rbowen@apache.org>
Thu, 28 May 2026 00:09:00 +0000 (00:09 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 28 May 2026 00:09:00 +0000 (00:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934697 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/remapping.xml

index b1be63c187bf8cb8a09ea27d55b376d2ce864fa6..5d54b142a4182132d369c197eb15128cd2bc3271 100644 (file)
@@ -221,7 +221,7 @@ RewriteRule "^(.*)" "https://%{SERVER_NAME}$1" [R=301,L]
     &lt;/Directory&gt;
 
     # Everything else goes to HTTPS
-    RedirectMatch permanent "^/(?!\.well-known/acme-challenge/)" "https://www.example.com/$0"
+    RedirectMatch permanent "^/(?!\.well-known/acme-challenge/)" "https://www.example.com/$1"
 &lt;/VirtualHost&gt;
 </highlight>