Hello, I got a problem with Magento. I'm using Magento on Localhost. but admin URL did not work. if I'm pressing admin URL then I got 404 error.
Can you please check .htaccess file is there in root directory of magento 2 ?
If not create one .htaccess file in root directory of magento 2 and copy content from this link - https://github.com/magento/magento2/blob/2.2-develop/.htaccess and paste it into your .htaccess file !
It will works for you !
You can use this and let me know if this works for you.
and try then.