This is an automated email from the ASF dual-hosted git repository.
swebb2066 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 e8a01669 Explain why the version is needed in the URL
e8a01669 is described below
commit e8a0166908d8a77cc67f75674b2624a5150c3413
Author: Stephen Webb <[email protected]>
AuthorDate: Wed Oct 9 12:25:20 2024 +1100
Explain why the version is needed in the URL
---
.htaccess | 11 +++--------
old_stable | 2 +-
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/.htaccess b/.htaccess
index aa9875de..46037969 100644
--- a/.htaccess
+++ b/.htaccess
@@ -5,14 +5,9 @@
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{SERVER_NAME}/log4cxx/$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.
+ # The following is used to redirect requests to the most recently
released version
+ # unless the version (or latest_stable/old_stable) is explicitly
included in the path.
+ # The redirection includes the version to avoid using an earlier
version of the file cached by the browser
#
RewriteCond %{REQUEST_URI} !^/log4cxx/\d+\.\d+.\d+(?:/(?:.+)?)?$
RewriteCond %{REQUEST_URI} !^/log4cxx/latest_stable(?:/(?:.+)?)?$
diff --git a/old_stable b/old_stable
index 1cc5f657..867e5243 120000
--- a/old_stable
+++ b/old_stable
@@ -1 +1 @@
-1.1.0
\ No newline at end of file
+1.2.0
\ No newline at end of file