www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Fisher (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (INFRA-4624) Lang Redirects for www.openoffice.org
Date Wed, 08 Aug 2012 21:30:20 GMT

    [ 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

        

Mime
View raw message