From 0de90cfc672ebb8bb7c8ffa01d40380715c42f94 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 26 Jul 2017 16:30:09 +0200 Subject: Fix 403 and 404 redirect * Nextcloud is not properly loaded in the standalone version (especially the theming) * it is already not listed anymore in the Nginx config (see nextcloud/documentation#392) * the index.php-free version doesn't support this Signed-off-by: Morris Jobke --- lib/private/Setup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/Setup.php b/lib/private/Setup.php index f5bfca604a9..1e98ed5456d 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -449,10 +449,10 @@ class Setup { $htaccessContent = explode($content, $htaccessContent, 2)[0]; //custom 403 error page - $content.= "\nErrorDocument 403 ".$webRoot."/core/templates/403.php"; + $content.= "\nErrorDocument 403 ".$webRoot."/"; //custom 404 error page - $content.= "\nErrorDocument 404 ".$webRoot."/core/templates/404.php"; + $content.= "\nErrorDocument 404 ".$webRoot."/"; // Add rewrite rules if the RewriteBase is configured $rewriteBase = $config->getValue('htaccess.RewriteBase', ''); -- cgit v1.2.3