Apache server error page redirecting to error source
Hello everybody I am currently having trouble with error pages on my apache server. When the user types www.my-domain.com/anypagethatdoesnotexist he gets redirected to www.my-domain.com/error/404.html. I'd like the content to be displayed directly in the wrong url from the user. I configured it via the .httaccess file: RewriteEngine On AllowOverride but still, i get redirected. can anyone help me? in the .htaccess file i set the error pages like this: ErrorDocument 400 https://www.my-domain.com/error/400.html ErrorDocument 401 https://www.my-domain.com/error/401.html ErrorDocument 403 https://www.my-domain.com/error/403.html ErrorDocument 404 https://www.my-domain.com/error/404.html ErrorDocument 500 https://www.my-domain.com/error/500.html Thank you