From c8bf23a4d291a68d7f58294c27650cee07c8916f Mon Sep 17 00:00:00 2001 From: Christoph Loy Date: Sun, 20 Sep 2020 20:34:22 +0000 Subject: [PATCH 1/2] Support /.well-known/change-password URL according to https://wicg.github.io/change-password-url/ Signed-off-by: Christoph Loy --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 87280cc9e01f7..ad4a6384739cb 100644 --- a/.htaccess +++ b/.htaccess @@ -67,6 +67,7 @@ RewriteRule ^\.well-known/nodeinfo /public.php?service=nodeinfo [QSA,L] RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L] RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L] + RewriteRule ^\.well-known/change-password /settings/user/security [R=301] RewriteRule ^remote/(.*) remote.php [QSA,L] RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L] RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.* From 987b497d593be77a490f9150001d09b01c4b675e Mon Sep 17 00:00:00 2001 From: Christoph Loy Date: Tue, 22 Sep 2020 12:33:34 +0000 Subject: [PATCH 2/2] Fix wrong redirect & add L flag As suggested by @juliushaertl and @brad2014 Signed-off-by: Christoph Loy --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index ad4a6384739cb..a1afd5ed01d07 100644 --- a/.htaccess +++ b/.htaccess @@ -67,7 +67,7 @@ RewriteRule ^\.well-known/nodeinfo /public.php?service=nodeinfo [QSA,L] RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L] RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L] - RewriteRule ^\.well-known/change-password /settings/user/security [R=301] + RewriteRule ^\.well-known/change-password /index.php/settings/user/security [R=301,L] RewriteRule ^remote/(.*) remote.php [QSA,L] RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L] RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*