milo695 Posted May 22, 2019 Share Posted May 22, 2019 (edited) Hi all, new here so please bear with me . I have few questions regarding config.php file when cloning/duplicating websites (copy files to other dir/domain, export database > make new db, import old db, configure config.php): 1. $config->userAuthSalt = 'somethinginhere'; Can this remain the same as on previous website or I need to change this string? 2. $config->httpHosts = array('mydomain.com'); What is the proper way - with or without http/https? 3. Can I manually delete: site/assets/files/bunch-of-folders-here that are from old website or there is a better way to do this? This post is actually about the proper way of handling new website when being copied from existing.. Thanks Edited May 22, 2019 by milo695 Link to comment Share on other sites More sharing options...
MrSnoozles Posted May 22, 2019 Share Posted May 22, 2019 Hello Milo and welcome to the forums. $config->userAuthSalt For security reasons this should be different for every page. This value is used to hash your passwords to add an extra layer of security. That means when you change it you won't be able to log in anymore without regenerating the password. $config->httpHosts This should be just the host, without the protocol. So without http/https site/assets/files As far as I know there is no better way to do this, so you would have to delete files that are not needed on the new site manually. I could be wrong tho. As for the title of the topic: try to add a couple more words so people with the same questions will have it easier to find your topic in the future ? Best regards and again, welcome to the community 4 Link to comment Share on other sites More sharing options...
flydev Posted May 22, 2019 Share Posted May 22, 2019 2 hours ago, milo695 said: Can I manually delete: site/assets/files/bunch-of-folders-here that are from old website or there is a better way to do this? More info on this threads : Welcome ? 2 Link to comment Share on other sites More sharing options...
szabesz Posted May 22, 2019 Share Posted May 22, 2019 4 hours ago, MrSnoozles said: topic: try to add a couple more words +1 and welcome ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now