I have installed Magento 2 locally. I imported the database, changed the URL, and so on. Everything works fine - each subpage loads. Unfortunately, the admin doesn't work. The page just shows 404. This is just a 404 as if the page just wasn't there (eg localhost/blabla and localhost/admin show the same).
I changed the admin's address to "admin", I cleaned the cache - still the same. Everything works except the admin page.
Logs show no errors. I have a .htaccess file. Does anyone have an idea what else could be wrong?
PS. I found a solution. Old values (old address) remained in the database in some places in core_config_data. Of course, these values were only as secure_base_url / base_url (probably via the multistore).