This is an automated email from the ASF dual-hosted git repository. sseifert pushed a commit to branch feature/apidocs-latest in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit d6983a7303c3f50c57e4c8b77e555bea8377c3f4 Author: Stefan Seifert <[email protected]> AuthorDate: Thu Nov 21 11:06:32 2024 +0100 Add redirect /apidocs/latest/ pointing to latest apidocs --- 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
