cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject svn commit: r1734175 - /cordova/site/public/.htaccess
Date Tue, 08 Mar 2016 22:53:20 GMT
Author: dblotsky
Date: Tue Mar  8 22:53:19 2016
New Revision: 1734175

URL: http://svn.apache.org/viewvc?rev=1734175&view=rev
Log:
Fixing .htaccess.

Modified:
    cordova/site/public/.htaccess

Modified: cordova/site/public/.htaccess
URL: http://svn.apache.org/viewvc/cordova/site/public/.htaccess?rev=1734175&r1=1734174&r2=1734175&view=diff
==============================================================================
--- cordova/site/public/.htaccess (original)
+++ cordova/site/public/.htaccess Tue Mar  8 22:53:19 2016
@@ -29,15 +29,6 @@ RewriteRule ^.*docs/(\w\w)/$ /docs/$1/la
 #       docs/XX/latest -> docs/XX/latest/
 RewriteRule ^.*docs/(\w\w)/latest$ /docs/$1/latest/ [R=302,L]
 
-# rewrite only:
-#       /docs/XX/latest/* -> /docs/XX/Y.Y.Y/*
-#
-# NOTE:
-#       This does NOT return a redirect. It returns the resource *as if* the
-#       redirected URI was requested. That is, both URIs return the same
-#       resource, but the browser won't change the URI (no redirects followed).
-RewriteRule ^.*docs/(\w\w)/latest/(.*)$ /docs/$1/6.x/$2 [L]
-
 # 301 (perm):
 #       docs/XX/edge  -> docs/xx/edge/
 #       docs/XX/edge/ -> docs/xx/dev/
@@ -237,3 +228,17 @@ RewriteRule ^.*docs/(\w\w)/latest/cordov
 # 301 (perm):
 #       old pages -> new pages
 
+
+# rewrite only:
+#       /docs/XX/latest/* -> /docs/XX/Y.Y.Y/*
+#
+# NOTE:
+#       This does NOT return a redirect. It returns the resource *as if* the
+#       redirected URI was requested. That is, both URIs return the same
+#       resource, but the browser won't change the URI (no redirects followed).
+# NOTE:
+#       This needs to be *after* the docs redirects because they might need the
+#       "/latest/" to be in the URI in order to activate. Placing this rule
+#       before them will rewrite "/latest/" to the latest version and redirects
+#       for "/latest/some/path.html" will never activate.
+RewriteRule ^.*docs/(\w\w)/latest/(.*)$ /docs/$1/6.x/$2 [L]



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


Mime
View raw message