diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-07-31 22:14:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-31 22:14:52 +0200 |
commit | fa2f122e09781467a12936626470b626e3d062a8 (patch) | |
tree | 457b165a793497d919979d8d7a36a41d454cb382 /lib | |
parent | 973b859cdd0d815547f6e3d876d04ae56e2de4ff (diff) | |
parent | 0de90cfc672ebb8bb7c8ffa01d40380715c42f94 (diff) | |
download | nextcloud-server-fa2f122e09781467a12936626470b626e3d062a8.tar.gz nextcloud-server-fa2f122e09781467a12936626470b626e3d062a8.zip |
Merge pull request #5890 from nextcloud/fix-403-and-404-redirect
Fix 403 and 404 redirect
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Setup.php | 4 |
1 files changed, 2 insertions, 2 deletions
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', ''); |