From 497bb54af6fa9948b39fd69653b68f6dfb3b52f2 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Fri, 22 Dec 2023 15:13:22 +0100 Subject: [PATCH] Replace HTML redirect with HTTP redirect --- src/site/resources/log4j-api/.htaccess | 3 ++ .../resources/log4j-api/apidocs/index.html | 32 ------------------- src/site/resources/log4j-core/.htaccess | 3 ++ .../resources/log4j-core/apidocs/index.html | 32 ------------------- 4 files changed, 6 insertions(+), 64 deletions(-) create mode 100644 src/site/resources/log4j-api/.htaccess delete mode 100644 src/site/resources/log4j-api/apidocs/index.html create mode 100644 src/site/resources/log4j-core/.htaccess delete mode 100644 src/site/resources/log4j-core/apidocs/index.html diff --git a/src/site/resources/log4j-api/.htaccess b/src/site/resources/log4j-api/.htaccess new file mode 100644 index 00000000000..dfb7b4c7b7f --- /dev/null +++ b/src/site/resources/log4j-api/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On +RewriteCond "%{REQUEST_URI}" "^(/log4j/[^/]+)" +RewriteRule "^apidocs(.*)$" "%1/javadoc/log4j-api$1" [R=permanent] diff --git a/src/site/resources/log4j-api/apidocs/index.html b/src/site/resources/log4j-api/apidocs/index.html deleted file mode 100644 index 42835115802..00000000000 --- a/src/site/resources/log4j-api/apidocs/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Log4j API Javadoc - - - - -

- The page you requested has been relocated to ../../javadoc/log4j-api/index.html. - You are getting redirected... -

- - diff --git a/src/site/resources/log4j-core/.htaccess b/src/site/resources/log4j-core/.htaccess new file mode 100644 index 00000000000..cedce8f9290 --- /dev/null +++ b/src/site/resources/log4j-core/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On +RewriteCond "%{REQUEST_URI}" "^(/log4j/[^/]+)" +RewriteRule "^apidocs(.*)$" "%1/javadoc/log4j-core$1" [R=permanent] diff --git a/src/site/resources/log4j-core/apidocs/index.html b/src/site/resources/log4j-core/apidocs/index.html deleted file mode 100644 index 325ba577759..00000000000 --- a/src/site/resources/log4j-core/apidocs/index.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Log4j Implementation Javadoc - - - - -

- The page you requested has been relocated to ../../javadoc/log4j-core/index.html. - You are getting redirected... -

- -