This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 790d13ca5 Automatic website deployment from
https://ci-builds.apache.org/job/Sling/job/modules/job/sling-site/job/master/953/
790d13ca5 is described below
commit 790d13ca57d83bd35b538f0c057ea187e2744e9c
Author: jenkins <[email protected]>
AuthorDate: Thu Nov 21 10:25:56 2024 +0000
Automatic website deployment from
https://ci-builds.apache.org/job/Sling/job/modules/job/sling-site/job/master/953/
---
.htaccess | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.htaccess b/.htaccess
index a8d346017..de3941f4f 100644
--- a/.htaccess
+++ b/.htaccess
@@ -20,6 +20,10 @@ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Set UTF-8 for text/plain and text/html
AddDefaultCharset utf-8
+# Redirect to API docs of latest sling release
+RewriteCond %{REQUEST_URI} ^/apidocs/latest/?$
+RewriteRule ^ /apidocs/sling12/ [R=302,L]
+
# Error pages
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html