From e57d4ffca6be243586e22a5c1d6358fc9a193fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars-S=C3=B6ren=20Steck?= Date: Sat, 8 Jun 2019 22:38:28 +0200 Subject: [PATCH] Correct error in .htaccess, revert #1069 The forward slashes are only needed if the rewrite rules are being put directly into the config file of the apache virtual host. They should not be added to the .htaccess file, as in this case the redirect is not working (this has been tested by me on multiple systems). You can also see in the discussion of the bug report #1069 after it was merged, that the reporter actually put the rules into his apache conf, instead of a .htaccess and that somebody else was reporting, that it was only working without the forward slashes in a .htaccess file. --- admin_manual/issues/general_troubleshooting.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin_manual/issues/general_troubleshooting.rst b/admin_manual/issues/general_troubleshooting.rst index 802333bc5..1701fe6b8 100644 --- a/admin_manual/issues/general_troubleshooting.rst +++ b/admin_manual/issues/general_troubleshooting.rst @@ -271,11 +271,11 @@ document root of your Web server and add the following lines:: RewriteEngine on - RewriteRule ^/\.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L] - RewriteRule ^/\.well-known/host-meta\.json /nextcloud/public.php?service=host-meta-json [QSA,L] - RewriteRule ^/\.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L] - RewriteRule ^/\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L] - RewriteRule ^/\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L] + RewriteRule ^\.well-known/host-meta /nextcloud/public.php?service=host-meta [QSA,L] + RewriteRule ^\.well-known/host-meta\.json /nextcloud/public.php?service=host-meta-json [QSA,L] + RewriteRule ^\.well-known/webfinger /nextcloud/public.php?service=webfinger [QSA,L] + RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav/ [R=301,L] + RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav/ [R=301,L] Make sure to change /nextcloud to the actual subfolder your Nextcloud instance is running in.