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:52:26 UTC
[nifi-site] branch main-staging updated: 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
The following commit(s) were added to refs/heads/main-staging by this push:
new e862053 NIFI-9802 Changed documentation redirect to use LocationMatch
e862053 is described below
commit e8620530f9ab88ccc5b9c948ad22ab3ebac01c3a
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..9ba9bcf 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>