You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/02/07 13:03:20 UTC
[hop-website] branch master updated: Add htaccess file for latest version redirect
This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop-website.git
The following commit(s) were added to refs/heads/master by this push:
new 420fadb Add htaccess file for latest version redirect
new dac8adc Merge pull request #127 from hansva/master
420fadb is described below
commit 420fadbc507e574ff23932b656886c90295f9a14
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Mon Feb 7 14:02:36 2022 +0100
Add htaccess file for latest version redirect
---
.htaccess | 7 +++++++
Jenkinsfile | 1 +
2 files changed, 8 insertions(+)
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..942a415
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,7 @@
+# Redirect rules for Hop
+RewriteEngine on
+RewriteBase "/"
+
+# Redirect /manual/1.1.0 to latest
+
+RewriteRule "^manual/1.1.0(/.*)$" "/manual/latest$1" [R=permanent,L]
\ No newline at end of file
diff --git a/Jenkinsfile b/Jenkinsfile
index 836bbb4..26985b5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -110,6 +110,7 @@ pipeline {
sh 'git rm -rf --ignore-unmatch .'
sh "cp -R $WORKSPACE/hop-website/public/. ."
sh "cp $WORKSPACE/hop-website/.asf.yaml ."
+ sh "cp $WORKSPACE/hop-website/.htaccess ."
sh 'git add .'
sh 'git commit -m "Website updated to $(git rev-parse --short HEAD)"'
sh 'git push origin asf-site'