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/20 02:12:54 UTC
[nifi-site] 01/01: NIFI-9802 Updated RewriteRule for component documentation
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 83cfe482846e772728c08907a4af7a80348abab0
Author: exceptionfactory <ex...@apache.org>
AuthorDate: Tue Jul 19 13:56:42 2022 -0500
NIFI-9802 Updated RewriteRule for component documentation
---
static/.htaccess | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/static/.htaccess b/static/.htaccess
index 4e4b6f8..2fbff34 100644
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -1,14 +1,8 @@
-AddType text/turtle .ttl
-
-AddType application/rdf+xml .rdf
-AddType application/ld+json .jsonld
-AddType application/n-triples .nt
-AddType application/owl+xml .owl
-
-AddType text/trig .trig
-AddType application/n-quads .nq
-
RewriteEngine on
-# Switch http to https
+
+# Redirect HTTP to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [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.16.3/$2 [L]