This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/curator-site.git
The following commit(s) were added to refs/heads/main by this push:
new 71336743 Implement redirect rules in .htaccess
71336743 is described below
commit 71336743c313ed7e919b8ed04af7685a5125308e
Author: tison <[email protected]>
AuthorDate: Fri Dec 5 18:35:43 2025 +0800
Implement redirect rules in .htaccess
Add redirect rules for old curator recipes links.
---
static/.htaccess | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/static/.htaccess b/static/.htaccess
new file mode 100644
index 00000000..66cfe05c
--- /dev/null
+++ b/static/.htaccess
@@ -0,0 +1,8 @@
+# redirect rules to prevent old links from breaking
+RewriteEngine On
+
+# Redirect /curator-recipes/index.html to the new recipes documentation
+# R=301: Permanent Redirect (SEO friendly)
+# L: Last rule (stops processing if this rule matches)
+RewriteRule ^/?curator-recipes/?$ https://curator.apache.org/docs/recipes/
[R=301,L]
+RewriteRule ^/?curator-recipes/index\.html$
https://curator.apache.org/docs/recipes/ [R=301,L]