[ 
https://issues.apache.org/jira/browse/BEAM-4498?focusedWorklogId=150928&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-150928
 ]

ASF GitHub Bot logged work on BEAM-4498:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Oct/18 20:51
            Start Date: 03/Oct/18 20:51
    Worklog Time Spent: 10m 
      Work Description: udim commented on a change in pull request #6556: 
[BEAM-4498] Add redirects and point javadoc/pydoc links to new location
URL: https://github.com/apache/beam/pull/6556#discussion_r222462789
 
 

 ##########
 File path: website/src/documentation/sdks/.htaccess
 ##########
 @@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Javadocs / pydocs are available only on the published website, published from
+# https://github.com/apache/beam-site/tree/release-docs
+# They were previously hosted within this repository, and published at the URL
+# path /documentation/sdks/(javadoc|pydoc)/..
+# The following redirect maintains the previously supported URLs.
+RedirectMatch permanent "/(javadoc|pydoc)" 
"https://beam.apache.org/documentation/releases/$1";
 
 Review comment:
   Caveat: I have virtually no prior experience with these files.
   This looks to me like a redirect loop, since the rule matches both old and 
new paths containing `(javadoc|pydoc)`.
   
   I would write it like this:
   ```
   RedirectMatch permanent "^/documentation/sdks/(.*)" 
"/documentation/releases/$1"
   ```
   
   ref: https://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirectmatch

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 150928)
    Time Spent: 1h 50m  (was: 1h 40m)

> Migrate release Javadocs / Pydocs to [asf-site] branch and update release 
> guide
> -------------------------------------------------------------------------------
>
>                 Key: BEAM-4498
>                 URL: https://issues.apache.org/jira/browse/BEAM-4498
>             Project: Beam
>          Issue Type: Sub-task
>          Components: website
>            Reporter: Scott Wegner
>            Assignee: Scott Wegner
>            Priority: Major
>              Labels: beam-site-automation-reliability
>             Fix For: Not applicable
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to