You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2020/09/02 20:22:00 UTC

[logging-log4cxx-site] branch asf-staging updated: Add htaccess file from svn site

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

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


The following commit(s) were added to refs/heads/asf-staging by this push:
     new 8ecf724  Add htaccess file from svn site
8ecf724 is described below

commit 8ecf7243f56ad259fa10f11ed3d367ddf9b4cc27
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Wed Sep 2 13:21:44 2020 -0700

    Add htaccess file from svn site
---
 .htaccess | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..8d731d9
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,37 @@
+<IfModule rewrite_module>
+	RewriteEngine	On
+	RewriteBase		/log4cxx
+
+	RewriteCond %{HTTPS}	!=on
+	RewriteRule ^(.*)$		https://%{SERVER_NAME}/log4cxx/$1	[R=permanent,L]
+
+	##
+	# Forward very old links to new at least somewhat compatible pages.
+	#
+	RewriteRule ^contributing\.html$		latest_stable/issue-tracking.html	[R=permanent,L]
+	RewriteRule ^roadmap\.html$				latest_stable/issue-tracking.html	[R=permanent,L]
+	RewriteRule ^support\.html$				latest_stable/mail-lists.html		[R=permanent,L]
+	RewriteRule ^team\.html$				latest_stable/mail-lists.html		[R=permanent,L]
+	RewriteRule ^performance\.html$			latest_stable/usage.html			[R=permanent,L]
+	RewriteRule ^ChangeLog$					latest_stable/changes-report.html	[R=permanent,L]
+	RewriteRule ^news$						latest_stable/changes-report.html	[R=permanent,L]
+	RewriteRule ^manual\.html$				latest_stable/usage.html			[R=permanent,L]
+	RewriteRule ^manual/index\.html$		latest_stable/usage.html			[R=permanent,L]
+	RewriteRule ^manual/(.*)$				latest_stable/apidocs/$1			[R=permanent,L]
+	RewriteRule ^manual\.html/index\.html$	latest_stable/usage.html			[R=permanent,L]
+	RewriteRule ^manual\.html/(.*)$			latest_stable/apidocs/$1			[R=permanent,L]
+
+	##
+	# Forward old requests to new dir layout.
+	#
+	# This dir contained the site of the one released version only in the past, but we wanted to
+	# provide that one of the next version to release as well, to make it easier for others to test
+	# that version. The following is used to redirect old requests and it was decided to truly
+	# redirect and not be fully transparent (anymore), because this way users may recognize the dir
+	# structure and ask for other available sites.
+	#
+	RewriteCond %{REQUEST_URI} !^/log4cxx/latest_stable(?:/(?:.+)?)?$
+	RewriteCond %{REQUEST_URI} !^/log4cxx/next_stable(?:/(?:.+)?)?$
+	RewriteCond %{REQUEST_URI} !^/log4cxx/old_stable(?:/(?:.+)?)?$
+	RewriteRule ^(.*)$			 /log4cxx/latest_stable/$1	[R=temp,L]
+</IfModule>