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 21:19:09 UTC
[nifi-site] 01/01: NIFI-9802 Changed documentation redirect to use LocationMatch
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 777abe057175ee0dc68bf3ac596a34b1883f2885
Author: exceptionfactory <ex...@apache.org>
AuthorDate: Tue Jul 19 15:52:03 2022 -0500
NIFI-9802 Changed documentation redirect to use LocationMatch
---
static/.htaccess | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/static/.htaccess b/static/.htaccess
index 9ec5be9..2a40ca6 100644
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -13,6 +13,6 @@ RewriteEngine on
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]
+<LocationMatch "^/docs/nifi-docs/components/org\.apache\.nifi/([^/+])/(!?:1.16.3)/(.*)$">
+ Redirect "https://%{HTTP_HOST}/docs/nifi-docs/components/org.apache.nifi/$1/1.16.3/$2"
+</LocationMatch>