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

    https://github.com/apache/cordova-docs/pull/569#discussion_r58451039
  
    --- 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 --
    
    @riknoll I've made the change. How does it look now?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to