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 e8c0ac2cc Add RewriteBase
e8c0ac2cc is described below
commit e8c0ac2cc1ac468edb2998e5e8a715de0e87ae81
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Tue Oct 17 09:56:32 2023 +0200
Add RewriteBase
---
2.x/log4j-api/.htaccess | 3 ++-
2.x/log4j-core/.htaccess | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/2.x/log4j-api/.htaccess b/2.x/log4j-api/.htaccess
index 218116559..1acf3be72 100644
--- a/2.x/log4j-api/.htaccess
+++ b/2.x/log4j-api/.htaccess
@@ -1,2 +1,3 @@
RewriteEngine On
-RewriteRule "^apidocs(.*)$" "../javadoc/log4j-api$1" [R=permanent]
+RewriteBase "/log4j/2.x/"
+RewriteRule "^apidocs(.*)$" "javadoc/log4j-api$1" [R=permanent]
diff --git a/2.x/log4j-core/.htaccess b/2.x/log4j-core/.htaccess
index 218116559..1acf3be72 100644
--- a/2.x/log4j-core/.htaccess
+++ b/2.x/log4j-core/.htaccess
@@ -1,2 +1,3 @@
RewriteEngine On
-RewriteRule "^apidocs(.*)$" "../javadoc/log4j-api$1" [R=permanent]
+RewriteBase "/log4j/2.x/"
+RewriteRule "^apidocs(.*)$" "javadoc/log4j-api$1" [R=permanent]