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

kaxilnaik pushed a commit to branch fix-registry-rewrite-rule-pattern
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit 538936a596c09969695a94e7fd1cceca716354b3
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Mar 10 02:24:28 2026 +0000

    Fix RewriteRule pattern for /registry trailing-slash redirect
    
    In .htaccess context, RewriteRule patterns match against the path
    without the leading slash. The pattern ^/registry$ never matched
    because Apache passes "registry" not "/registry". Drop the leading
    slash so the 301 redirect fires correctly.
---
 landing-pages/site/static/.htaccess | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Reply via email to