You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2024/11/21 10:06:41 UTC
(sling-site) branch feature/apidocs-latest created (now d6983a730)
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a change to branch feature/apidocs-latest
in repository https://gitbox.apache.org/repos/asf/sling-site.git
at d6983a730 Add redirect /apidocs/latest/ pointing to latest apidocs
This branch includes the following new commits:
new d6983a730 Add redirect /apidocs/latest/ pointing to latest apidocs
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(sling-site) 01/01: Add redirect /apidocs/latest/ pointing to latest apidocs
Posted by ss...@apache.org.
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 <st...@users.noreply.github.com>
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