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

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

commit 30a930a697a70403a3ffa72125e53a63d079e5aa
Author: Martijn Visser <[email protected]>
AuthorDate: Mon Jan 19 16:33:49 2026 +0100

    [hotfix][docs] Configures Apache to serve the custom 404.html page with 
proper 404 status code and always serve index.html for dirs
---
 docs/static/.htaccess | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/docs/static/.htaccess b/docs/static/.htaccess
new file mode 100644
index 00000000000..2fabac591ed
--- /dev/null
+++ b/docs/static/.htaccess
@@ -0,0 +1,22 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Ensure index.html is served for directory requests
+DirectoryIndex index.html
+
+# Custom 404 error page
+ErrorDocument 404 /flink/flink-docs-release-1.13/404.html

Reply via email to