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

martijnvisser pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/flink-web.git


The following commit(s) were added to refs/heads/asf-staging by this push:
     new 149f8815e Validate new htaccess rules
149f8815e is described below

commit 149f8815e16c367eb923fb4e20513fc94aee954a
Author: Martijn Visser <mvis...@confluent.io>
AuthorDate: Wed Feb 22 10:23:17 2023 +0100

    Validate new htaccess rules
---
 content/.htaccess | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/content/.htaccess b/content/.htaccess
index b1202f908..9fc954dbc 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -14,29 +14,29 @@ RewriteRule ^/?docs/(.*) 
https://nightlies.apache.org/flink/flink-docs-master/$1
 # Generic redirect rule that should redirect users from all old blog posts to 
their new URLs
 # Example 1: https://flink.apache.org/news/2023/01/30/release-1.16.1.html to 
https://flink.apache.org/posts/2023-01-26-release-1.16.1/
 # Example 2: 
https://flink.apache.org/2022/11/25/async-sink-rate-limiting-strategy.html to 
https://flink.apache.org/posts/2022-11-25-async-sink-rate-limiting-strategy/
-RewriteRule ^news/(\d+)/(\d+)/(\d+)/(.*)$ /posts/$1-$2-$3-$4 [R=301,L]
+RewriteRule ^news/(\d{4})/(\d{2})/(\d{2})/([a-z0-9-]+)\.html$ 
/posts/$1-$2-$3-$4/ [R=301,L]
 
 # English URLs
-RewriteRule ^/flink\-architecture\.html$ /what-is-flink/flink-architecture/ 
[R=301,L]
-RewriteRule ^/flink-applications.html$ /what-is-flink/flink-applications/ 
[R=301,L]
-RewriteRule ^/flink-operations.html$ /what-is-flink/flink-operations/ [R=301,L]
-RewriteRule ^/usecases.html$ /use-cases/ [R=301,L]
-RewriteRule ^/poweredby.html$ /powered-by/ [R=301,L]
-RewriteRule ^/downloads.html$ /downloads/ [R=301,L]
-RewriteRule ^/gettinghelp.html$ /getting-help/ [R=301,L]
-RewriteRule ^/blog/$ /posts/ [R=301,L]
-RewriteRule ^/community.html$ /community/ [R=301,L]
-RewriteRule ^/roadmap.html$ /roadmap/ [R=301,L]
-RewriteRule ^/contributing/how-to-contribute.html$ 
/contribute/how-to-contribute/ [R=301,L]
-RewriteRule ^/contributing/contribute-code.html$ /contribute/contribute-code/ 
[R=301,L]
-RewriteRule ^/contributing/reviewing-prs.html$ /contribute/reviewing-prs/ 
[R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-preamble.html$ 
/contribute/code-style-and-quality/preamble/ [R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-pull-requests.html$ 
/contribute/code-style-and-quality/pull-requests/ [R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-common.html$ 
/contribute/code-style-and-quality/common/ [R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-java.html$ 
/contribute/code-style-and-quality/java/ [R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-scala.html$ 
/contribute/code-style-and-quality/scala/ [R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-components.html$ 
/contribute/code-style-and-quality/components/ [R=301,L]
-RewriteRule ^/contributing/code-style-and-quality-formatting.html$ 
/contribute/code-style-and-quality/formatting/ [R=301,L]
+RewriteRule ^flink\-architecture\.html$ /what-is-flink/flink-architecture/ 
[R=301,L]
+RewriteRule ^flink-applications\.html$ /what-is-flink/flink-applications/ 
[R=301,L]
+RewriteRule ^flink-operations\.html$ /what-is-flink/flink-operations/ [R=301,L]
+RewriteRule ^usecases\.html$ /use-cases/ [R=301,L]
+RewriteRule ^poweredby\.html$ /powered-by/ [R=301,L]
+RewriteRule ^downloads\.html$ /downloads/ [R=301,L]
+RewriteRule ^gettinghelp\.html$ /getting-help/ [R=301,L]
+RewriteRule ^blog/$ /posts/ [R=301,L]
+RewriteRule ^community\.html$ /community/ [R=301,L]
+RewriteRule ^roadmap\.html$ /roadmap/ [R=301,L]
+RewriteRule ^contributing/how-to-contribute\.html$ 
/contribute/how-to-contribute/ [R=301,L]
+RewriteRule ^contributing/contribute-code\.html$ /contribute/contribute-code/ 
[R=301,L]
+RewriteRule ^contributing/reviewing-prs\.html$ /contribute/reviewing-prs/ 
[R=301,L]
+RewriteRule ^contributing/code-style-and-quality-preamble\.html$ 
/contribute/code-style-and-quality/preamble/ [R=301,L]
+RewriteRule ^contributing/code-style-and-quality-pull-requests\.html$ 
/contribute/code-style-and-quality/pull-requests/ [R=301,L]
+RewriteRule ^contributing/code-style-and-quality-common\.html$ 
/contribute/code-style-and-quality/common/ [R=301,L]
+RewriteRule ^contributing/code-style-and-quality-java\.html$ 
/contribute/code-style-and-quality/java/ [R=301,L]
+RewriteRule ^contributing/code-style-and-quality-scala\.html$ 
/contribute/code-style-and-quality/scala/ [R=301,L]
+RewriteRule ^contributing/code-style-and-quality-components\.html$ 
/contribute/code-style-and-quality/components/ [R=301,L]
+RewriteRule ^contributing/code-style-and-quality-formatting\.html$ 
/contribute/code-style-and-quality/formatting/ [R=301,L]
 RewriteRule ^contributing/code-style-and-quality-formatting\.html$ 
/how-to-contribute/code-style-and-quality-formatting/ [R=301,L]
 RewriteRule ^contributing/contribute-documentation\.html$ 
/how-to-contribute/contribute-documentation/ [R=301,L]
 RewriteRule ^contributing-style\.html$ 
/how-to-contribute/documentation-style-guide/ [R=301,L]

Reply via email to