Skip to content

Commit

Permalink
[Website] Add .htaccess to redirect https://arrow.apache.org/datafu…
Browse files Browse the repository at this point in the history
…sion to https://datafusion.apache.org/ (#505)

Closes apache/datafusion#10194
Closes #502

Per @kou 's suggestion in
#502 (comment),
this PR adds a `.htaccess` file with a redirect from all
`www.apache.org/datafusion` urls to `datadfusion.apache.org` urls (I
think)

Documentaiton on these files is here:
https://infra.apache.org/project-site.html

I don't really know how to test this other than "in production"
  • Loading branch information
alamb authored Apr 25, 2024
1 parent 9729c02 commit 50b2739
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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.

# redirect all datafusion URLs to new top level website
Redirect permanent /datafusion https://datafusion.apache.org
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<a class="dropdown-item" href="{{ site.baseurl }}/adbc">ADBC</a>
<a class="dropdown-item" href="{{ site.baseurl }}/docs/format/Flight.html">Arrow Flight</a>
<a class="dropdown-item" href="{{ site.baseurl }}/docs/format/FlightSql.html">Arrow Flight SQL</a>
<a class="dropdown-item" href="{{ site.baseurl }}/datafusion">DataFusion</a>
<a class="dropdown-item" href="https://datafusion.apache.org">DataFusion</a>
<a class="dropdown-item" href="{{ site.baseurl }}/nanoarrow">nanoarrow</a>
</div>
</li>
Expand Down

0 comments on commit 50b2739

Please sign in to comment.