@Rahul Gupta Yes, i have .htaccess file on root folder.
@Aveeva have you tried the steps which is shared with you?
@Rahul Gupta My .htaccess file => https://paste.ofcode.org/esXxgAVLakNdpbLSs9AGuE
@Aveeva you can replace it with the file mention in the below link.
@Aveeva you have installed this fresh magento?
Yes, this is my fresh magento 2.3.3 with sample data, after installed run below commands,
php bin/magento setup:upgrade
(or)
php -dmemory_limit=6G bin/magento setup:upgrade
Carefull to run => php bin/magento setup:upgrade –keep-generated
Carefull to run => php bin/magento setup:di:compile
(or)
Carefull to run => php -dmemory_limit=5G bin/magento setup:di:compile
php bin/magento setup:db-schema:upgrade
* php bin/magento setup:static-content:deploy
(or)
*** php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
(or)
php -dmemory_limit=5G bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento cache:clean
Hello @Aveeva
1. Please connect the database and check base_url from core_config_data. In some cases, there are 2 (4 rows) places where you need to change the urls.
so update properly base_url in core_config_data tabe.
UPDATE core_config_data SET value = REPLACE (value,'https://olddomain.com/','http://www.yournewdomain.com/');
2. You can check the admin frontname of backend /app/etc/env.php
e.g.
'backend' => [
'frontName' => 'backend'
]
You can also change it.
3. Then run the below commands :
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento cache:flush php bin/magento setup:static-content:deploy -f chmod -R 777 var/ pub/ generated/
I am facing similar issue after adding domain names to base_url (config apache-> varnish -> magento (php server). Only admin gives 404, whoops, our bad. I tried all the steps mentioned above and I am running same version as mentioned. no luck. any pointers anyone ?
no logs or no errors.