Page 1 of 1

Trouble cloning a Drupal 7 site

Posted: Wed Aug 04, 2021 12:26 pm
I have a live Drupal 7 site that I need to migrate to Drupal 9. My first step is to clone the live Drupal 7 site to MAMP so I can clean out the modules and content I do not need to migrate. I am struggling with cloning the site to MAMP. Here's what I did:
  • Compressed and downloaded the sql database and drupal files from the live site
  • Created a new custom host with database on MAMP Pro
  • Put the drupal files in the new host and imported the database dump into the MAMP database
  • Changed the settings.php to point to the MAMP Pro database
When I try to open the site in MAMP Pro, I get the home page, but any attempt to see deeper (logging in, seeing content) gives me a 'url not found' error. Is there is a path variable that needs to be changed? Or some other step I've skipped or done wrong?


Re: Trouble cloning a Drupal 7 site (RESOLVED)

Posted: Wed Aug 04, 2021 12:52 pm
I don't know why, but the compressed Drupal 7 distribution did not include htaccess, so there was no htaccess file in my MAMP clone. When I downloaded that from live and added it to the MAMP clone, it works fine.

Not to figure out why the htaccess (and probably other hidden files) were not included in the compressed backup...