You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2024/04/10 20:19:13 UTC

(logging-log4j-site) 01/01: Add redirect to per-artifact folders

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/logging-log4j-site.git

commit 66b3ad2a82421256af1b56e19328fcf9f1cdce20
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Apr 10 22:12:16 2024 +0200

    Add redirect to per-artifact folders
---
 2.x/.htaccess | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/2.x/.htaccess b/2.x/.htaccess
new file mode 100644
index 0000000000..4b5df8d668
--- /dev/null
+++ b/2.x/.htaccess
@@ -0,0 +1,7 @@
+RewriteEngine On
+RewriteBase "/log4j/2.x/"
+# Per-artifact folders
+RewriteRule "log4j-(1\.2-api|appserver|cassandra|couchdb|docker)/(index(\.html)?)?" "log4j-$1" [R=permanent]
+RewriteRule "log4j-(flume-ng|iostreams|jakarta-web|jcl|jmx-gui)/(index(\.html)?)?" "log4j-$1" [R=permanent]
+RewriteRule "log4j-(jpl|jul|kubernetes|mongodb[34]|slf4j2?-impl)/(index(\.html)?)?" "log4j-$1" [R=permanent]
+RewriteRule "log4j-(spring-boot|spring-cloud-config(-client)?|taglib|to-jul|to-slf4j|web)/(index(\.html)?)?" "log4j-$1" [R=permanent]