You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2023/02/22 09:32:45 UTC
[flink-web] branch asf-staging updated: Testing
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 729b5f4b5 Testing
729b5f4b5 is described below
commit 729b5f4b5ef16035d55bdc319fe984885ab6f960
Author: Martijn Visser <mv...@confluent.io>
AuthorDate: Wed Feb 22 10:32:37 2023 +0100
Testing
---
content/.htaccess | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/content/.htaccess b/content/.htaccess
index 624aa58e7..bcc1e4cb2 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -14,8 +14,9 @@ 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{4})/(\d{2})/(\d{2})/release-(\d+\.\d+\.\d+)\.html$ /posts/$1-$2-$3-release-$4/ [R=301,L]
-RewriteRule ^(\d{4})/(\d{2})/(\d{2})/(.+)\.html$ /posts/$1-$2-$3-$4/ [R=301,L]
+# RewriteRule ^news/(\d{4})/(\d{2})/(\d{2})/release-(\d+\.\d+\.\d+)\.html$ /posts/$1-$2-$3-release-$4/ [R=301,L]
+# RewriteRule ^(\d{4})/(\d{2})/(\d{2})/(.+)\.html$ /posts/$1-$2-$3-$4/ [R=301,L]
+RewriteRule ^(news/)?(\d{4})/(\d{2})/(\d{2})/(?:release-)?([\w-]+)\.html$ /posts/$2-$3-$4-$5/ [R=301,L]
# English URLs
RewriteRule ^flink\-architecture\.html$ /what-is-flink/flink-architecture/ [R=301,L]