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

erisu pushed a commit to branch feat/versioning-and-htaccess
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/feat/versioning-and-htaccess 
by this push:
     new e5167e1f52 docs: .htaccess
e5167e1f52 is described below

commit e5167e1f52ef01279e93c842b9d0ffa5bba715f6
Author: Erisu <[email protected]>
AuthorDate: Fri Jan 9 13:30:25 2026 +0900

    docs: .htaccess
---
 www/.htaccess | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/.htaccess b/www/.htaccess
index bf49b715df..590a108b40 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -64,7 +64,7 @@ RewriteRule 
^docs/([a-z]{2}(?:-[a-z]{2})?)/{{redirect[0]}}(/.*)?$ \
 #
 {% for redirect in site.data.redirects.language-renames %}
 RewriteRule ^docs/{{redirect[0]}}/([0-9]+(\.[0-9x]+)+(-[0-9.]+)?)(/.*)?$ \
-    /archive/docs/{{redirect[1]}}/$1$4 [R=302,L]
+    {{site.baseurl}}/archive/docs/{{redirect[1]}}/$1$4 [R=302,L]
 {% endfor %}
 # 301 (PERMANENT):
 #
@@ -99,4 +99,4 @@ RewriteRule ^.*/{{redirect[0]}}$ 
{{site.baseurl}}/{{redirect[1]}} [NE,R=301,L]
 # ALL previous language+versioned docs will redirect to archive
 # The key part of the expression is that all versions docs must contain one 
dot after a number.
 RewriteRule 
^docs/([a-z]{2}(?:-[a-z]{2})?)/([0-9]+(\.[0-9x]+)+(-[0-9.]+)?)(/.*)?$ \
-    /archive/docs/$1/$2$5 [R=301,L]
+    {{site.baseurl}}/archive/docs/$1/$2$5 [R=301,L]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to