In my case i has to enable the apache's mod_rewrite
sudo a2enmod rewrite
The error occurs because of .htaccess file on your Magento 2 installation folder. Htaccess file is missing or wrong setting make Magento 2.
If you’re using Nginx, the rewrite part of Nginx conf file may be missing or not working.
You can gain access to website by putting “index.php” in the url like this example: yourwebsite.com/index.php or for admin access: /magento2/index.php/admin
Refer this tutorial to see if you are missing any step
Hope this helps!
Thank you for your question. I have learned your comments here
Where I get this page "apache2.conf".
@Mukesh Tiwari wrote:
Edit apache2.conf file and change following
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>
to<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
if frontend is working fine then please check in core_config_data table. there should be different admin url mention.
If my answer is useful, please Accept as Solution & give Kudos
I am using ubuntu 18.04.running the Magento in a virtual host locally.
my admin URL not working I checked the URL it has HTTPS.
so i changed core_config_data -> web/secure/base_url -> HTTP.
after clear the cache, it's working.