I recently migrated a site to a new domain, everything worked fine, until I found out if I went to the domain https://example.com/wp-admin (without a slash on the end) it redirects to it's old domain, and when I add a slash on the end it goes to the corresponding page.
I don't know what the issue is, I've added
define('WP_HOME', 'https://example.nl/');define('WP_SITEURL', 'https://example.nl/');define('RELOCATE', true);`
In wp-config, and also in the in the backend and the wp_options table.
I don't know what has caused this, and hope someone has a fix for this.