This is an automated email from the ASF dual-hosted git repository.
kamilbregula pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/master by this push:
new 836f20f Fix redirect to / and /docs endpoint for some versions (#362)
836f20f is described below
commit 836f20f8114c030f0a2aca24ea778bd58d73c44c
Author: Felix Uellendall <[email protected]>
AuthorDate: Fri Jan 8 21:58:47 2021 +0100
Fix redirect to / and /docs endpoint for some versions (#362)
* Fix redirect to / and /docs endpoint for some versions
Some versions like >=1.10.14 and >=2.0.0 don't get correctly redirected to
its documentation page.
* Reorder redirects
* Fix order
* Use specific versions for 1.10.14 and > 2.0.0
---
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 be6b748..428ea32 100644
--- a/landing-pages/site/static/.htaccess
+++ b/landing-pages/site/static/.htaccess
@@ -3,7 +3,7 @@ RedirectMatch Permanent
^/docs/(stable|1.10.10)/(cli|macros)(\.html)?$ "https://
RedirectMatch Permanent ^/((_api|_images|_modules|_sources|_static|howto)/.*)$
"https://airflow.apache.org/docs/apache-airflow/stable/$1"
RedirectMatch Permanent
^/((1.10.1|1.10.2|1.10.3|1.10.4|1.10.5|1.10.6|1.10.7|1.10.8|1.10.9|1.10.10)/.*)$
"https://airflow.apache.org/docs/apache-airflow/$1"
RedirectMatch Permanent
^/((api|changelog|cli|concepts|errors|faq|genindex|http-routingtable|installation|integration|kubernetes|license|lineage|macros|metrics|plugins|privacy_notice|profiling|project|py-modindex|scheduler|search|security|start|timezone|tutorial|ui)(\.html)?)$
"https://airflow.apache.org/docs/apache-airflow/stable/$1"
-RedirectMatch Permanent
^/docs/((1.10.1|1.10.2|1.10.3|1.10.4|1.10.5|1.10.6|1.10.7|1.10.8|1.10.9|1.10.10|1.10.11|1.10.12|1.10.13|stable)/.*)$
"https://airflow.apache.org/docs/apache-airflow/$1"
+RedirectMatch Permanent
^/docs/((1.10.1|1.10.2|1.10.3|1.10.4|1.10.5|1.10.6|1.10.7|1.10.8|1.10.9|1.10.10|1.10.11|1.10.12|1.10.13|1.10.14|2\.[0-9.]+|stable)/.*)$
"https://airflow.apache.org/docs/apache-airflow/$1"
Redirect Permanent /objects.inv
https://airflow.apache.org/docs/apache-airflow/stable/objects.inv