I just made a new installation of magento 2 using composer and sample data.
I was able to make it to store front "http://www.myshop.com" on my local system.
but whenever I tend to access the admin page as "http://www.myshop.com/admin" it throws above page.
I tried several solutions like these
Solution 1 and Solution 2 but neither of them seems to work for me. Please help
I am using -:
Magento Version 2.3.4
Nginx , MySQL 5.7 and PHP 7.2
Hi @Techie777
Have you checked the admin path in
app/etc/env.php
?
return array (
'backend' =>
array (
'frontName' => 'admin',
)
Hi @Techie777
Please check that .htaccess file is there in the root directory of your Magento 2 or not?
if it's not there then kindly create .htaccess file in the root directory and add this content https://github.com/emizentech/magento2/blob/master/.htaccess.sample in the file.
Then check!
Hope it helps