You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2022/07/19 20:03:15 UTC

[nifi-site] 01/01: NIFI-9802 Adjusted documentation rewrite rules for 1.16.3

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

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

commit b844f8f12c37e942b1f34d3cb39fb991f41ea52c
Author: exceptionfactory <ex...@apache.org>
AuthorDate: Tue Jul 19 14:40:39 2022 -0500

    NIFI-9802 Adjusted documentation rewrite rules for 1.16.3
---
 static/.htaccess | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/static/.htaccess b/static/.htaccess
index d287058..9ec5be9 100644
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -8,10 +8,11 @@ AddType  application/owl+xml     .owl
 AddType  text/trig               .trig
 AddType  application/n-quads     .nq
 
-# Redirect component documentation to latest version
-RedirectMatch 302 ^/docs/nifi-docs/components/org\.apache\.nifi/([^/]+)/[^/]+/(.*) "https://%{HTTP_HOST}/docs/nifi-docs/components/org.apache.nifi/$1/1.16.3/$2"
-
 RewriteEngine on
 # Switch http to https
 RewriteCond     %{HTTPS} !=on
 RewriteRule     ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
+
+# Redirect component documentation to latest version
+RewriteCond %{REQUEST_URI} !^/docs/nifi-docs/components/org\.apache\.nifi/[^/+]/1.16.3.*$
+RewriteRule "^/docs/nifi-docs/components/org\.apache\.nifi/(\d[^/]+)/[^/]+/(.*)" "https://%{HTTP_HOST}/docs/nifi-docs/components/org.apache.nifi/$1/1.16.3/$2" [L]