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

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


The following commit(s) were added to refs/heads/release-1.18 by this push:
     new faba1606a3d [hotfix][docs] Configures Apache to serve the custom 
404.html page with proper 404 status code when a page is not found
faba1606a3d is described below

commit faba1606a3d48ca9a373e78840898462b17f94fc
Author: Martijn Visser <[email protected]>
AuthorDate: Mon Jan 19 16:13:14 2026 +0100

    [hotfix][docs] Configures Apache to serve the custom 404.html page with 
proper 404 status code when a page is not found
---
 docs/static/.htaccess | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/docs/static/.htaccess b/docs/static/.htaccess
index 0131801bfe6..95154ad3614 100644
--- a/docs/static/.htaccess
+++ b/docs/static/.htaccess
@@ -19,9 +19,4 @@
 DirectoryIndex index.html
 
 # Custom 404 error page
-# Dynamically serve 404.html from the same docs version
-RewriteEngine On
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteCond %{REQUEST_URI} ^(/flink/flink-docs-[^/]+)/
-RewriteRule ^ %1/404.html [L]
+ErrorDocument 404 /flink/flink-docs-release-1.18/404.html

Reply via email to