5.7 Running Clone on Localhost Domain Issues > generated_overrides
Permalink
I am posting this in case anyone has the same issue I have just had and might save themselves an hour of arsing about within C5.7 which seems not to have documented this.
THE AIM
I wanted to clone a site I had built and make live, bring it to my local environment, import the database from the live site and run it all on localhost. I wanted to do this and make a new site for a different client.
THE PROBLEM
I cloned the files, downloaded the database (bear in mind I am cloning a live site so cannot change settings before I download either the database or the files.) I set up the sites as required to run on the localhost, using MAMP etc. I have done this many times pre 5.7.
The localhost new site kept on linking to the old website's URL, however there was nothing in the databse linking to this nor in the config files. I had removed the cache and could not find the source of this URL. A problem with the caching of data I expect, ideally I would have turned off all caches and cleared prior to download, but as explained I could.
SOLUTION
Go to application > config > generated_overrides > concrete.php
I had not seen this file mentioned anywhere but in it I found lines referring to the old sites absolute path, along with SEO url rewriting lines I amended. I had already sorted the .htaccess.
It says don't edit but this fixed my issue
THE AIM
I wanted to clone a site I had built and make live, bring it to my local environment, import the database from the live site and run it all on localhost. I wanted to do this and make a new site for a different client.
THE PROBLEM
I cloned the files, downloaded the database (bear in mind I am cloning a live site so cannot change settings before I download either the database or the files.) I set up the sites as required to run on the localhost, using MAMP etc. I have done this many times pre 5.7.
The localhost new site kept on linking to the old website's URL, however there was nothing in the databse linking to this nor in the config files. I had removed the cache and could not find the source of this URL. A problem with the caching of data I expect, ideally I would have turned off all caches and cleared prior to download, but as explained I could.
SOLUTION
Go to application > config > generated_overrides > concrete.php
I had not seen this file mentioned anywhere but in it I found lines referring to the old sites absolute path, along with SEO url rewriting lines I amended. I had already sorted the .htaccess.
It says don't edit but this fixed my issue