You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/12/03 20:07:37 UTC

[camel-website] branch master updated: chore: redirect to latest documentation

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

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 00d9839  chore: redirect to latest documentation
00d9839 is described below

commit 00d9839808c0b652e2315edb7eba2535bc0e8c91
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Thu Dec 3 20:11:52 2020 +0100

    chore: redirect to latest documentation
    
    Better than hitting 403 for Antora built documentation, let's redirect
    to latest version.
---
 static/.htaccess | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/static/.htaccess b/static/.htaccess
index a1d6d02..775a224 100644
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -1274,6 +1274,15 @@ Redirect 301 /blog/CdcWithCamelAndDebezium/ /blog/2020/05/CdcWithCamelAndDebeziu
 Redirect 301 /blog/release-3-3-0.html /blog/2020/05/RELEASE-3.3.0/
 Redirect 301 /blog/release-3-4-0.html /blog/2020/06/RELEASE-3.4.0/
 
+# default to latest documentation versions, to make it easier on folk to type in shorter urls
+Redirect 301 /components/ /components/latest/
+Redirect 301 /camel-spring-boot/ /camel-spring-boot/latest/
+Redirect 301 /camel-karaf/ /camel-karaf/latest/
+Redirect 301 /camel-k/ /camel-k/latest/
+Redirect 301 /camel-kafka-connector/ /camel-kafka-connector/latest/
+Redirect 301 /camel-quarkus/ /camel-quarkus/latest/
+Redirect 301 /manual/ /manual/latest/
+
 # Disable the pattern matching based on filenames.
 #
 # This setting prevents Apache from returning a 404 error as the result