You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/07/22 11:22:54 UTC

(airflow-site) branch exclude-docs-index-html-from-being-rewritten created (now 5186f63126)

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

potiuk pushed a change to branch exclude-docs-index-html-from-being-rewritten
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


      at 5186f63126 Do not rewrite ^docs/index.html on our website

This branch includes the following new commits:

     new 5186f63126 Do not rewrite ^docs/index.html on our website

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(airflow-site) 01/01: Do not rewrite ^docs/index.html on our website

Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch exclude-docs-index-html-from-being-rewritten
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit 5186f63126aa2f378a03403bbe753201f71a5a59
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Jul 22 13:18:28 2025 +0200

    Do not rewrite ^docs/index.html on our website
    
    The docs/index.html is generated and published in the ASF infrastructure
    and we should not rewrite it and redirect to our S3 - this way whatever
    is the latest version on our "airflow-site" is the one published.
---
 landing-pages/site/static/.htaccess | 1 +
 1 file changed, 1 insertion(+)

diff --git a/landing-pages/site/static/.htaccess b/landing-pages/site/static/.htaccess
index 647d025fa2..4c32f01713 100644
--- a/landing-pages/site/static/.htaccess
+++ b/landing-pages/site/static/.htaccess
@@ -1,5 +1,6 @@
 RewriteEngine On
 
+RewriteCond %{REQUEST_URI} !^/docs/index\.html$ [NC]
 RewriteCond %{REQUEST_URI} ^/docs [NC]
 RewriteRule (.*) https://d7fnmbhf26p21.cloudfront.net/$1 [P]