diff --git a/htdocs/well-known.php b/htdocs/well-known.php index 7594947c..62348035 100644 --- a/htdocs/well-known.php +++ b/htdocs/well-known.php @@ -18,7 +18,8 @@ switch ( $request->path ) { case '/.well-known/caldav': case '/.well-known/carddav': header('Location: ' . ConstructURL('/',true) ); - exit(0); + $request->DoResponse(301); // Moved permanently + // does not return. }