You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "David Fisher (Created) (JIRA)" <ji...@apache.org> on 2012/03/30 02:23:28 UTC

[jira] [Created] (INFRA-4624) Lang Redirects for www.openoffice.org

Lang Redirects for www.openoffice.org
-------------------------------------

                 Key: INFRA-4624
                 URL: https://issues.apache.org/jira/browse/INFRA-4624
             Project: Infrastructure
          Issue Type: Improvement
      Security Level: public (Regular issues)
          Components: HTTP Server, Website
            Reporter: David Fisher


>From ooo-dev:

{quote}
On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:

The problem is still here under 
AOO340m1 (Build:9589) Rev. 1303653 22 march 2012

for "Get more information about OpenOffice.org" doesn't lead to "Native 
Language" internet page

the link is shown now http://www.openoffice.org/?lang=ru 
but it's doesn't redirect to http://www.openoffice.org/ru/

The same error there is e.g for the next langpack:

French, German, Italian etc.
{quote}

I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/

Shall we try it?

Regards,
Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "David Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258656#comment-13258656 ] 

David Fisher commented on INFRA-4624:
-------------------------------------

Further refinement.

We need this ?lang= redirect on both openoffice.org and www.openoffice.org domain names.

Is it time to treat www.openoffice.org and openoffice.org as the same domain?

Regards,
Dave
                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Daniel Gruno (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414913#comment-13414913 ] 

Daniel Gruno commented on INFRA-4624:
-------------------------------------

Do you want a redirect or a rewrite?

If you want to _redirect_ /?lang=foo to /foo, then something like this is what you need:

RewriteCond %{QUERY_STRING} lang=([a-zA-Z]+)
RewriteRule ^(.*)$ /%1/$1? [R]

This would redirect /?lang=foo to /foo/, as well as /bar?lang=foo to /foo/bar.
If you just want /bar?lang=foo to always redirect to /foo (and discard /bar), then you'll need this instead:

RewriteCond %{QUERY_STRING} lang=([a-zA-Z]+)
RewriteRule .* /%1? [R]

                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264490#comment-13264490 ] 

#asfinfra IRC Bot commented on INFRA-4624:
------------------------------------------

<danielsh> I don't see a consensus here.  What do you want redirected where?  Answers in RewriteRule format preferred :)

                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "David Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258653#comment-13258653 ] 

David Fisher commented on INFRA-4624:
-------------------------------------

I think the following is the rewrite rule:

RewriteRule ^([^/]*)/$ /?lang=$1 [L]

I think it would be good to review the existing rewrite rules for openoffice.org. I suspect there may be other necessary changes. For example try these:

http://br.openoffice.org/ ought to go to http://www.openoffice.org/pt-br/

I might have some cycles this weekend to do a review.

                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "David Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431387#comment-13431387 ] 

David Fisher edited comment on INFRA-4624 at 8/8/12 9:29 PM:
-------------------------------------------------------------

Here is the patch:


--- httpd-conf/www.apache.org/vhosts/zzzothers.conf	(revision 828411)
+++ httpd-conf/www.apache.org/vhosts/zzzothers.conf	(working copy)
@@ -227,6 +227,11 @@
    RewriteRule ^(.*)$ ${lowercase:%{HTTP_HOST}}$1 [C]
    RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) http://www.openoffice.org/$1/$2 [NE,L,R=permanent]
 
+   # change *.openoffice.org/?lang=foo to www.openoffice.org/foo/
+   RewriteCond ${lowercase:%{QUERY_STRING}} lang=([a-z\-]+) 
+   RewriteCond /x1/www/ooo-site.apache.org/content/%1 -d
+   RewriteRule .* http://www.openoffice.org/%1 [NE,L,R=permanent] 
+
    # fallback for proj.openoffice.org/... to openoffice.org/projects/proj/...
    RewriteCond ${lowercase:%{HTTP_HOST}} ^(?!www)(\w+)(?:\.\w+)?\.openoffice\.org$
    RewriteRule ^(.*)$ ${lowercase:%{HTTP_HOST}}$1 [C]

                
      was (Author: wave):
    Here is the patch:


--- httpd-conf/www.apache.org/vhosts/zzzothers.conf	(revision 828411)
+++ httpd-conf/www.apache.org/vhosts/zzzothers.conf	(working copy)
@@ -227,6 +227,11 @@
    RewriteRule ^(.*)$ ${lowercase:%{HTTP_HOST}}$1 [C]
    RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) http://www.openoffice.org/$1/$2 [NE,L,R=permanent]
 
+   # change *.openoffice.org/?lang=foo to www.openoffice.org/foo/
+   RewriteCond ${lowercase:%{QUERY_STRING}} lang=([a-z\-]+) 
+   RewriteCond /x1/www/ooo-site.apache.org/content/%1 -d
+   RewriteRule .* http://www.openoffice.org/$1 [NE,L,R=permanent] 
+
    # fallback for proj.openoffice.org/... to openoffice.org/projects/proj/...
    RewriteCond ${lowercase:%{HTTP_HOST}} ^(?!www)(\w+)(?:\.\w+)?\.openoffice\.org$
    RewriteRule ^(.*)$ ${lowercase:%{HTTP_HOST}}$1 [C]

                  
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

#asfinfra IRC Bot reopened INFRA-4624:
--------------------------------------

    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Andrea Pescetti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279610#comment-13279610 ] 

Andrea Pescetti commented on INFRA-4624:
----------------------------------------

In plain English, what we want is that
http://www.openoffice.org/?lang=it
is redirected to
http://www.openoffice.org/it

and in general that
http://www.openoffice.org/?lang=LG
is redirected to
http://www.openoffice.org/LG

for LG=(.*) or at least it, en, de, es... but since the parameter is used only by the OpenOffice program (not by website URLs) the redirection could be made general.

In mod_rewrite language, something like:

RewriteCond %{QUERY_STRING} lang=it
RewriteRule ^(.*)$ /it/index.html? [L]

works for me (the ? in the second line is meant to kill the query string as per http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond section "Modifying the Query String").
                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

#asfinfra IRC Bot updated INFRA-4624:
-------------------------------------

    Status: Waiting for user  (was: Reopened)
    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

#asfinfra IRC Bot closed INFRA-4624.
------------------------------------

    Resolution: Fixed
    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Gavin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin closed INFRA-4624.
------------------------

    Resolution: Fixed
      Assignee:     (was: Gavin)

All Done.

See r828963
                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Gavin (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247173#comment-13247173 ] 

Gavin commented on INFRA-4624:
------------------------------

I'll try two for now (say fr and es ?) , but I will need a complete list of languages that you want doing altogether.
Will let you know progress of those two tomorrow.
                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Andrea Pescetti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258812#comment-13258812 ] 

Andrea Pescetti commented on INFRA-4624:
----------------------------------------

Shouldn't the rewrite be the other way round?

Our source is like http://www.openoffice.org/?lang=it and out target is like http://www.openoffice.org/it

(there's probably no need to mix this with the www.openoffice.org vs openoffice.org issue, since this is a hardcoded link in the OpenOffice binaries and it always uses www.openoffice.org)
                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "David Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258654#comment-13258654 ] 

David Fisher commented on INFRA-4624:
-------------------------------------

In the past http://openoffice.org was excluded from rewrite rules. This has gone away. So, in this issue these are openoffice.org rewrite rules. If nothing matches then rewrite as www.openoffice.org.

The rewrite rule should be this:

RewriteRule http://www.openoffice.org/^([^/]*)/$ /?lang=$1 [L]


                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Andrea Pescetti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13417018#comment-13417018 ] 

Andrea Pescetti commented on INFRA-4624:
----------------------------------------

The latter will be enough for this project's needs. This is just to circumvent some hardcoded URLs in the suite, and the target should always be www.openoffice.org/it or similar, not subpages.
                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Gavin (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin reassigned INFRA-4624:
----------------------------

    Assignee: Gavin
    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Andrea Pescetti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Pescetti updated INFRA-4624:
-----------------------------------

    Status: Waiting for Infra  (was: Waiting for user)
    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274376#comment-13274376 ] 

#asfinfra IRC Bot commented on INFRA-4624:
------------------------------------------

<danielsh> remind feedback timeout

                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "Tony Stevenson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13243819#comment-13243819 ] 

Tony Stevenson commented on INFRA-4624:
---------------------------------------

Dave, 

If you want too, we can.  You should provide us with the rewrite rules, and make sure they dont overlap/clash with existing objects.

                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "David Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431387#comment-13431387 ] 

David Fisher commented on INFRA-4624:
-------------------------------------

Here is the patch:


--- httpd-conf/www.apache.org/vhosts/zzzothers.conf	(revision 828411)
+++ httpd-conf/www.apache.org/vhosts/zzzothers.conf	(working copy)
@@ -227,6 +227,11 @@
    RewriteRule ^(.*)$ ${lowercase:%{HTTP_HOST}}$1 [C]
    RewriteRule ^(\w+)(?:\.\w+)?\.openoffice\.org/(.*) http://www.openoffice.org/$1/$2 [NE,L,R=permanent]
 
+   # change *.openoffice.org/?lang=foo to www.openoffice.org/foo/
+   RewriteCond ${lowercase:%{QUERY_STRING}} lang=([a-z\-]+) 
+   RewriteCond /x1/www/ooo-site.apache.org/content/%1 -d
+   RewriteRule .* http://www.openoffice.org/$1 [NE,L,R=permanent] 
+
    # fallback for proj.openoffice.org/... to openoffice.org/projects/proj/...
    RewriteCond ${lowercase:%{HTTP_HOST}} ^(?!www)(\w+)(?:\.\w+)?\.openoffice\.org$
    RewriteRule ^(.*)$ ${lowercase:%{HTTP_HOST}}$1 [C]

                
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

#asfinfra IRC Bot reopened INFRA-4624:
--------------------------------------

    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (INFRA-4624) Lang Redirects for www.openoffice.org

Posted by "#asfinfra IRC Bot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/INFRA-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

#asfinfra IRC Bot closed INFRA-4624.
------------------------------------

    Resolution: Fixed
    
> Lang Redirects for www.openoffice.org
> -------------------------------------
>
>                 Key: INFRA-4624
>                 URL: https://issues.apache.org/jira/browse/INFRA-4624
>             Project: Infrastructure
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: HTTP Server, Website
>            Reporter: David Fisher
>            Assignee: Gavin
>
> From ooo-dev:
> {quote}
> On Mar 28, 2012, at 2:42 PM, Torokhov Sergey wrote:
> The problem is still here under 
> AOO340m1 (Build:9589) Rev. 1303653 22 march 2012
> for "Get more information about OpenOffice.org" doesn't lead to "Native 
> Language" internet page
> the link is shown now http://www.openoffice.org/?lang=ru 
> but it's doesn't redirect to http://www.openoffice.org/ru/
> The same error there is e.g for the next langpack:
> French, German, Italian etc.
> {quote}
> I think this can be best dealt with by adding additional redirects that convert www.openoffice.org/?lang=en to www.openoffice.org/ and www.openoffice.org/lang=X to www.openoffice.org/X/
> Shall we try it?
> Regards,
> Dave

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira