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

kaxilnaik pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit f1740a1f6a168598863b10519c7b446b6185d095
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Mar 10 01:54:53 2026 +0000

    Fix /registry not working without trailing slash (#1438)
    
    The proxy rewrite condition `^/registry/` requires the trailing slash,
    so bare `/registry` requests never get proxied to CloudFront. Add a
    301 redirect from `/registry` to `/registry/` before the proxy block.
---
 landing-pages/site/static/.htaccess | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/landing-pages/site/static/.htaccess 
b/landing-pages/site/static/.htaccess
index 2b3e00b7d7..929acab826 100644
--- a/landing-pages/site/static/.htaccess
+++ b/landing-pages/site/static/.htaccess
@@ -1,5 +1,8 @@
 RewriteEngine On
 
+# Redirect bare /registry to /registry/ for consistent trailing-slash URLs
+RewriteRule ^/registry$ /registry/ [R=301,L]
+
 RewriteCond %{REQUEST_URI} ^/docs [OR]
 RewriteCond %{REQUEST_URI} ^/schemas/ [OR]
 RewriteCond %{REQUEST_URI} ^/registry/

Reply via email to