Always redirect to 404, not only in root?

Hello Community. :hugs:

I created some custom ‘ErrorDocuments’ such like for 404, 401 and so on. The thing is that the 404 page is only displayed when using a wrong path on the root of the address. (Which is a domain)
So ‘my.domain.com/Files/WhatEverForOwncloudPath/larifari/’ does not redirect to 404 but goes strait back to either the last visited and woking site or to the base site when to login. :face_with_raised_eyebrow:

Which option i have to set or deactivate to get the owncloud redirecting to the 404.html any time and not only within the root dir? :thinking: