diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-10-14 07:42:25 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-10-21 15:12:21 +0200 |
commit | 11bedf1c3bc65d70b5601ccfca7cdc3a57a46aa6 (patch) | |
tree | 0e628765755fb1318b61357f3f61a7b6869e6b4b /lib/private/Setup.php | |
parent | 7848d1cab6e0e3a6fb8cd15c4a8cba7147dabab9 (diff) | |
download | nextcloud-server-11bedf1c3bc65d70b5601ccfca7cdc3a57a46aa6.tar.gz nextcloud-server-11bedf1c3bc65d70b5601ccfca7cdc3a57a46aa6.zip |
Use proper error pages instead of always redirecting
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Setup.php')
-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 a94074c37e7..cd11f73abbe 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -509,10 +509,10 @@ class Setup { $htaccessContent = explode($content, $htaccessContent, 2)[0]; //custom 403 error page - $content .= "\nErrorDocument 403 " . $webRoot . '/'; + $content .= "\nErrorDocument 403 " . $webRoot . '/index.php/error/403'; //custom 404 error page - $content .= "\nErrorDocument 404 " . $webRoot . '/'; + $content .= "\nErrorDocument 404 " . $webRoot . '/index.php/error/404'; // Add rewrite rules if the RewriteBase is configured $rewriteBase = $config->getValue('htaccess.RewriteBase', ''); |