This is an automated email from the ASF dual-hosted git repository. github-bot pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/asf-site by this push: new dd3a3e5d89 Deploying to asf-site from @ apache/cordova-docs@d79a681ab600a60a362e21079a69520d17471ded 🚀 dd3a3e5d89 is described below commit dd3a3e5d89f1361d3fc3a26d40403a46f324f044 Author: erisu <er...@users.noreply.github.com> AuthorDate: Tue Mar 18 03:48:44 2025 +0000 Deploying to asf-site from @ apache/cordova-docs@d79a681ab600a60a362e21079a69520d17471ded 🚀 --- .htaccess | 21 +++++++++++++++++---- feed.xml | 4 ++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.htaccess b/.htaccess index d69215535e..0ddeea9c74 100644 --- a/.htaccess +++ b/.htaccess @@ -583,7 +583,7 @@ RewriteRule ^.*/plugins/authors.html$ /docs/en/latest/guide/hybrid/plugins/index RewriteRule ^.*docs/(\w\w(?:-\w\w)?)/latest/(.*)$ /docs/$1/12.x-2025.01/$2 [L] # Redirect http to https -# From Cordova PMC Member raphinesse +# From Cordova PMC Member raphinesse # https://s.apache.org/An8s # If we receive a forwarded http request from a proxy... @@ -596,6 +596,19 @@ RewriteCond %{HTTPS} !=on # Redirect to https version RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] -# Redirect all docs translations to their English version -RewriteCond $1 !=en -RewriteRule ^.*docs/(\w\w(?:-\w\w)?)/(.*)$ /docs/en/$2 [R=302,L] +# Prevent redirecting away from archive URLs +RewriteCond %{REQUEST_URI} ^/archive/ [NC] +RewriteRule .* - [L] + +# Prevent redirecting away from English docs +RewriteCond %{REQUEST_URI} ^/docs/en/ [NC] +RewriteRule .* - [L] + +# Redirect all non-English documentation to the English version. +# If the English counterpart is missing, a 404 page will be displayed. +# Over time, the non-English documentation has fallen out of sync with the English version. +# For example, some pages may have been removed from the English documentation because they were no longer +# relevant or were merged into other pages, while the translated versions were not updated accordingly. +RewriteCond %{REQUEST_URI} ^/docs/(\w\w(?:-\w\w)?) [NC] +RewriteCond %1 !=en +RewriteRule ^docs/(\w\w(?:-\w\w)?)/(.*)$ /docs/en/$2 [R=302,L] diff --git a/feed.xml b/feed.xml index 4a43643ee8..55a28a83d6 100644 --- a/feed.xml +++ b/feed.xml @@ -6,8 +6,8 @@ </description> <link>https://cordova.apache.org/</link> <atom:link href="https://cordova.apache.org/feed.xml" rel="self" type="application/rss+xml"/> - <pubDate>Tue, 18 Mar 2025 02:09:44 +0000</pubDate> - <lastBuildDate>Tue, 18 Mar 2025 02:09:44 +0000</lastBuildDate> + <pubDate>Tue, 18 Mar 2025 03:47:51 +0000</pubDate> + <lastBuildDate>Tue, 18 Mar 2025 03:47:51 +0000</lastBuildDate> <generator>Jekyll v4.4.1</generator> <item> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org