You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2017/02/19 08:42:18 UTC
[2/2] pdfbox-docs git commit: PDFBOX-3330: redirect http to https -
further tweaks might be neccesary
PDFBOX-3330: redirect http to https - further tweaks might be neccesary
Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/4c7d8d84
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/4c7d8d84
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/4c7d8d84
Branch: refs/heads/master
Commit: 4c7d8d842813f4ec2beb1630bdc276f889b7b240
Parents: 91884ea
Author: Maruan Sahyoun <sa...@fileaffairs.de>
Authored: Sun Feb 19 09:42:09 2017 +0100
Committer: Maruan Sahyoun <sa...@fileaffairs.de>
Committed: Sun Feb 19 09:42:09 2017 +0100
----------------------------------------------------------------------
content/.htaccess | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/4c7d8d84/content/.htaccess
----------------------------------------------------------------------
diff --git a/content/.htaccess b/content/.htaccess
index bdc50ee..a21ad55 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -1,4 +1,6 @@
RewriteEngine On
+RewriteCond %{HTTPS} off
+RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^apidocs(/?)$ /docs/1.8.10/javadocs [R=301,L]
RewriteRule ^commandlineutilities(/?)(.*)$ /commandline [R=301,L]
RewriteRule ^downloads\.html$ /download.cgi