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 @@ - - - -
-- 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 @@ - - - - -- The page you requested has been relocated to ../../javadoc/log4j-core/index.html. - You are getting redirected... -
- -