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

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-site.git


The following commit(s) were added to refs/heads/main by this push:
     new f16e925d NIFI-13931 Added RewriteRule for nifi-latest documentation 
guides
f16e925d is described below

commit f16e925d97e9b2b57670d3e5e12f44ba7ca7009b
Author: exceptionfactory <[email protected]>
AuthorDate: Thu Oct 24 20:59:49 2024 -0500

    NIFI-13931 Added RewriteRule for nifi-latest documentation guides
---
 static/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/static/.htaccess b/static/.htaccess
index 4d05499d..1bde9d03 100644
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -4,6 +4,9 @@ RewriteEngine on
 RewriteCond     %{HTTPS} !=on
 RewriteRule     ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
 
+# Redirect latest documentation alias to specified version
+RewriteRule ^documentation/nifi-latest/html/(.+?)$ 
/documentation/nifi-2.0.0-M4/html/$1 [L,R]
+
 # Redirect component documentation to specified version
 RewriteRule 
^docs/nifi-docs/components/org\.apache\.nifi/([^\/]+?)/[^\/]+?/(.*)$ 
docs/nifi-docs/components/org.apache.nifi/$1/1.27.0/$2 [L]
 

Reply via email to