This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x-site-stg-out
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x-site-stg-out by this push:
new ddb9b0e0ce Fix `log4j-1.2-api` redirect
ddb9b0e0ce is described below
commit ddb9b0e0ceaf6a4ebe15fb11c988229b74e5d736
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri May 24 23:04:33 2024 +0200
Fix `log4j-1.2-api` redirect
---
.htaccess | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.htaccess b/.htaccess
index cebcba523c..47f907b75d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -45,7 +45,7 @@ RewriteRule "^runtime-dependencies\.html$"
"manual/installation.html" [R=permane
# 2. we replaced a directory like `log4j-api/` with a file that has the same
prefix like `log4j-api.html`,
#
# if the URI path is `/log4j/2.x/log4j-api/foo` we must match
`log4j-api.html/foo`.
-RewriteRule "^log4j-1\.2-api\.html/" "log4j-1.2-api.html" [R=permanent]
+RewriteRule "^log4j-1\.2-api\.html/index\.html$" "log4j-1.2-api.html"
[R=permanent]
RewriteRule "^log4j-api\.html/apidocs(.*)$" "javadoc/log4j-api$1" [R=permanent]
RewriteRule "^log4j-api\.html/index\.html" "log4j-api.html" [R=permanent]
RewriteRule "^log4j-appserver\.html/index\.html$" "log4j-appserver.html"
[R=permanent]