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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 1a32b4eb7 Fix Javadoc redirects
1a32b4eb7 is described below

commit 1a32b4eb70f42716d409c7894afb052399aa62ae
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Tue Oct 17 09:51:57 2023 +0200

    Fix Javadoc redirects
---
 2.x/.htaccess            | 6 ------
 2.x/log4j-api/.htaccess  | 2 ++
 2.x/log4j-core/.htaccess | 2 ++
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/2.x/.htaccess b/2.x/.htaccess
deleted file mode 100644
index db6bd043e..000000000
--- a/2.x/.htaccess
+++ /dev/null
@@ -1,6 +0,0 @@
-RewriteEngine On
-RewriteBase "/log4j/2.x/"
-RewriteRule "^log4j-api/apidocs(.*)$" "javadoc/log4j-api$1" [R=permanent]
-RewriteRule "^log4j-core/apidocs(.*)$" "javadoc/log4j-core$1" [R=permanent]
-
-RewriteRule "^log4j-lala(.*)$" "javadoc/log4j-api$1" [R=permanent]
diff --git a/2.x/log4j-api/.htaccess b/2.x/log4j-api/.htaccess
new file mode 100644
index 000000000..218116559
--- /dev/null
+++ b/2.x/log4j-api/.htaccess
@@ -0,0 +1,2 @@
+RewriteEngine On
+RewriteRule "^apidocs(.*)$" "../javadoc/log4j-api$1" [R=permanent]
diff --git a/2.x/log4j-core/.htaccess b/2.x/log4j-core/.htaccess
new file mode 100644
index 000000000..218116559
--- /dev/null
+++ b/2.x/log4j-core/.htaccess
@@ -0,0 +1,2 @@
+RewriteEngine On
+RewriteRule "^apidocs(.*)$" "../javadoc/log4j-api$1" [R=permanent]

Reply via email to