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

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 57160c88b Add redirect /apidocs/latest/ pointing to latest apidocs 
(#185)
57160c88b is described below

commit 57160c88b6b5c3635b5f89019be4409df7e4c977
Author: Stefan Seifert <[email protected]>
AuthorDate: Thu Nov 21 11:23:34 2024 +0100

    Add redirect /apidocs/latest/ pointing to latest apidocs (#185)
---
 src/main/jbake/assets/.htaccess | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/jbake/assets/.htaccess b/src/main/jbake/assets/.htaccess
index a8d346017..de3941f4f 100644
--- a/src/main/jbake/assets/.htaccess
+++ b/src/main/jbake/assets/.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

Reply via email to