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


The following commit(s) were added to refs/heads/staging by this push:
     new 25c9a953e2 Fix RewriteRule pattern for /registry trailing-slash 
redirect (#1439)
25c9a953e2 is described below

commit 25c9a953e299bb839ef2fb62c188b8cb2f35f698
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Mar 10 02:24:54 2026 +0000

    Fix RewriteRule pattern for /registry trailing-slash redirect (#1439)
    
    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