Skip to content

Commit

Permalink
website/site/.htaccess - bug fix by removing BOM and update for beta0…
Browse files Browse the repository at this point in the history
…0017 redirection
  • Loading branch information
rclabo committed Oct 30, 2024
1 parent 8c015e0 commit fca5ccf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion websites/site/.gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.htaccess text eol=lf
.htaccess text eol=lf working-tree-encoding=UTF-8
9 changes: 5 additions & 4 deletions websites/site/.htaccess
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -----------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Expand Down Expand Up @@ -32,13 +32,14 @@
# version, with [R=301] signaling permanent redirects and [L] preventing further
# rule processing.
#
# Note: This file is line ending sensitive. MUST use LF line endings.
# Note: This file is line ending and BOM sensitive. It MUST use LF line endings and
# MUST NOT have a BOM.


RewriteEngine On

# Redirect /docs/latest/ to /docs/3.0.3/
RewriteRule ^docs/latest/(.*)$ /docs/3.0.3/$1 [R=301,L]

# Redirect /docs/absolute-latest/ to /docs/4.8.0-beta00016/
RewriteRule ^docs/absolute-latest/(.*)$ /docs/4.8.0-beta00016/$1 [R=301,L]
# Redirect /docs/absolute-latest/ to /docs/4.8.0-beta00017/
RewriteRule ^docs/absolute-latest/(.*)$ /docs/4.8.0-beta00017/$1 [R=301,L]

0 comments on commit fca5ccf

Please sign in to comment.