cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject docs commit: Adding comment to .htaccess.
Date Wed, 11 Nov 2015 04:50:27 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/master 385fe8773 -> e2c671e1f


Adding comment to .htaccess.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/e2c671e1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/e2c671e1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/e2c671e1

Branch: refs/heads/master
Commit: e2c671e1f1d1af3763694d847182bd8022a8c514
Parents: 385fe87
Author: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Authored: Tue Nov 10 20:50:22 2015 -0800
Committer: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Committed: Tue Nov 10 20:50:22 2015 -0800

----------------------------------------------------------------------
 www/.htaccess | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/e2c671e1/www/.htaccess
----------------------------------------------------------------------
diff --git a/www/.htaccess b/www/.htaccess
index eafc4eb..20b1907 100644
--- a/www/.htaccess
+++ b/www/.htaccess
@@ -47,5 +47,10 @@ RewriteRule ^.*docs/(\w\w)/latest/(.*)$ {{site.baseurl}}/docs/$1/{{site.latest_d
 # NOTE:
 #       The first part of the path (i.e. the ".*") is
 #       thrown away and replaced by site.baseurl.
+# NOTE:
+#       The reason for this not just being "redirects" and rather being
+#       docs-specific is: these redirects happen for every version of the
+#       docs. That's 157 redirects * 84 versions ~= 13000 redirects! Doing
+#       special pattern-matching for docs keeps that number at _only_ 157.
 {% for redirect in site.data.docs-redirects %}
 RewriteRule ^.*docs/(\w\w)/([^/]+)/{{redirect.old}}$ {{site.baseurl}}/docs/$1/$2/{{redirect.new}}
[R=301,L]{% endfor %}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message