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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7c234928a1 Add .htaccess rewrite rules for /registry/ (#1459)
7c234928a1 is described below

commit 7c234928a1604fca2f53393d4df06130048cc571
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Mar 19 12:58:15 2026 +0000

    Add .htaccess rewrite rules for /registry/ (#1459)
    
    - Redirect bare /registry to /registry/ for trailing-slash consistency
    - Proxy /registry/ through CloudFront (same as /docs and /schemas)
    
    This matches what's already deployed on staging.
---
 landing-pages/site/static/.htaccess | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/landing-pages/site/static/.htaccess 
b/landing-pages/site/static/.htaccess
index e0994e6c16..1f5414eb3d 100644
--- a/landing-pages/site/static/.htaccess
+++ b/landing-pages/site/static/.htaccess
@@ -1,7 +1,11 @@
 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/
+RewriteCond %{REQUEST_URI} ^/schemas/ [OR]
+RewriteCond %{REQUEST_URI} ^/registry/
 RewriteCond %{REQUEST_URI} !^/docs/index\.html$ [NC]
 RewriteCond %{REQUEST_URI} !^/docs/index\.xml$ [NC]
 RewriteRule (.*) https://d7fnmbhf26p21.cloudfront.net/$1 [P]

Reply via email to