Jump to content

Recommended Posts

Posted (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 by milo695

Share this post


Link to post
Share on other sites

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
 

  • Like 4

Share this post


Link to post
Share on other sites
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 🙂

  • Like 2

Share this post


Link to post
Share on other sites
4 hours ago, MrSnoozles said:

topic: try to add a couple more words

+1 and welcome 🙂

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...