I have installed a WordPress instance and I a facing the following problem. After that I access my admin panel via the URL: https://MY-DOMAIN/wp-admin I am correctly redirected to the admin panel. The problem is that if now I click on any link in the admin menu I am redirected to a URL like this: https://MY-DOMAIN/users.php that will return a 404 Not Found error. This is because the wp-admin prefix is missing. I can solve it manually by adding it to the previous URL and changing it in the browser to something like this: https://MY-DOMAIN/wp-admin/users.php.
So it works, but it can be considered a temporary trick and I need to solve this problem. What could be the reason for this issue and how can I try to solve it?