|
From: | Auto mailings of changes to Lily Issues via Testlilyissues-auto |
Subject: | [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5883 Web: update documentation symlinks, and use https in RewriteRules |
Date: | Thu, 09 Apr 2020 19:38:19 -0000 |
Reviewers: ,
Message:
This seems trivial enough; may I just push onto staging?
Cheers,
V.
Description:
Web: update documentation symlinks, and use https in RewriteRules
Please review this at https://codereview.appspot.com/551650043/
Affected files (+4, -4 lines):
M Documentation/web/server/lilypond.org.htaccess
Index: Documentation/web/server/lilypond.org.htaccess
diff --git a/Documentation/web/server/lilypond.org.htaccess b/Documentation/web/server/lilypond.org.htaccess
index 480fc3d5a795d21afdeb09e9b4d80860245941f4..5b83bfe5213f3e822e7083802fe9890c08adf36c 100644
--- a/Documentation/web/server/lilypond.org.htaccess
+++ b/Documentation/web/server/lilypond.org.htaccess
@@ -18,7 +18,7 @@ RewriteEngine On
# Permanent redirect from www.lilypond.org to lilypond.org
RewriteCond "%{HTTP_HOST}" "^www.(.+)$" [NC]
-RewriteRule "^/?(.)$" "http://%1/$1" [R=301,L,NE]
+RewriteRule "^/?(.)$" "https://%1/$1" [R=301,L,NE]
# Deny following of symlinks by robots.
# HTTrack is a known offender.
@@ -52,8 +52,8 @@ RedirectMatch ^/doc/stable/?$ /manuals
RedirectMatch ^/doc/development/?$ /development
# Allow to use deep links to latest stable or development docs
-RedirectMatch ^/doc//latest/(.)$ /doc/v2.19/$1
-RedirectMatch ^/doc//development/(.)$ /doc/v2.19/$1
+RedirectMatch ^/doc//latest/(.)$ /doc/v2.21/$1
+RedirectMatch ^/doc//development/(.)$ /doc/v2.21/$1
RedirectMatch ^/doc//stable/(.)$ /doc/v2.20/$1
RedirectMatch ^/doc//([^v].)$ /doc/v2.20/$1
RedirectMatch ^(/Documentation.)$ /doc/v2.20$1
@@ -96,7 +96,7 @@ RewriteCond %{REQUEST_URI} !^/website
# ...and does not start with /doc$
RewriteCond %{REQUEST_URI} !^/doc$
# ...add trailing slash for [menu] and to avoid /web/ in browser url
-RewriteRule ^(.+)$ http://%/$1/ [R,QSA,L]
+RewriteRule ^(.+)$ https://%/$1/ [R,QSA,L]
# Request that does not start with /website
RewriteCond %{REQUEST_URI} !^/website
[issues:#5883] Web: update documentation symlinks, and use https in RewriteRules
Status: Started
Created: Thu Apr 09, 2020 07:13 PM UTC by Valentin Villenave
Last Updated: Thu Apr 09, 2020 07:13 PM UTC
Owner: Valentin Villenave
https://codereview.appspot.com/551650043
Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
_______________________________________________ Testlilyissues-auto mailing list address@hidden https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
[Prev in Thread] | Current Thread | [Next in Thread] |