Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-docs/pull/569#discussion_r58139811
  
    --- Diff: www/.htaccess ---
    @@ -18,29 +18,31 @@ RewriteEngine on
     #       pages to new pages.
     
     # 302 (temp):
    -#       docs     -> docs/en/latest/
    -#       docs/    -> docs/en/latest/
    -#       docs/XX  -> docs/XX/latest/
    -#       docs/XX/ -> docs/XX/latest/
    +#       docs/          -> docs/[default language]/
    +#       docs/XX        -> docs/XX/
    +#       docs/XX/       -> docs/XX/latest
    +#       docs/XX/latest -> docs/XX/latest/
     #
     # NOTE:
    -#       these can both apply, turning "/docs" into "/docs/en/latest/"
    -RewriteRule ^.*docs/$ {{site.baseurl}}/docs/en/
    -RewriteRule ^.*docs/(\w\w)/$ {{site.baseurl}}/docs/$1/latest/ [R=302,L]
    -
    -# 302 (temp):
    -#       docs/XX/latest -> docs/XX/latest/
    -RewriteRule ^.*docs/(\w\w)/latest$ {{site.baseurl}}/docs/$1/latest/ 
[R=302,L]
    +#       these can all apply, turning "/docs" into "/docs/[default 
language]/latest/"
    +RewriteRule ^.*docs/$ {{site.baseurl}}/docs/{{site.language}}/
    +RewriteRule ^.*docs/(\w\w(?:-\w\w)?)$ {{site.baseurl}}/docs/$1/
    --- End diff --
    
    Oh, you're right! That doesn't exist. I said `/docs/en/` but I was thinking 
about `/docs/en/latest/`.
    
    The reason there is a chain is that any intermediary URI will "fall 
through" to `/docs/en/latest/`. So all of `/docs/en`, `/docs/en/`, 
`/docs/en/latest` will become `/docs/en/latest/`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to