Problem/Motivation
I have moved a site from mydomain.com to myanotherdomain/drupal. But after migration all pages are working fine except the homepage. When I am running myanotherdomain/drupal/home it's working but it's showing default 404 page when I run myanotherdomain/drupal.
Steps to reproduce
After migrating all files & folders to the newdomain, import database from the old server and run drush cr
What I tried
I tried changing the default front page from Configuration > System > Basic Site settings > Default Front Page.
But it's not working.
Also tried programatically like this:
Drupal::configFactory()->getEditable('system.site')->set('page.front', '/home')->save();
Is there any configuration that I am missing here?
Comments
Comment #2
cilefen commentedDrupal 8 reached end-of-life on November 2, 2021. Only migrating to Drupal 9 is supported here.
You may have an issue with the web server configuration not reading the .htaccess file.
Comment #3
cilefen commented