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 2023/12/27 07:47:17 UTC

(logging-log4j-kotlin) 02/02: Replace HTML redirect with HTTP redirect

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-kotlin.git

commit 56b31b4ef4cdb3294e3f6cb18df0412db24c740b
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Dec 27 08:43:02 2023 +0100

    Replace HTML redirect with HTTP redirect
---
 .htaccess  |  3 +++
 index.html | 10 ----------
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..749c127
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,3 @@
+RewriteEngine On
+RewriteRule "^$" "/log4j/kotlin/latest/" [R]
+
diff --git a/index.html b/index.html
deleted file mode 100644
index 3f13c7c..0000000
--- a/index.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <title>Apache Log4j Kotlin API</title>
-    <meta http-equiv="refresh" content="0; url=latest"/>
-</head>
-<body>
-<p>You will be redirected to the <a href="latest">latest</a> version of the website.</p>
-</body>
-</html>