I have a client that entered the Cpanel, I copied it and pasted it from the wordpress folder domain1.cl to domino2.cl. What wp file are the URLs for the site to point to the new domain?
*Note: the client has already configured the new DNS, only the redirection is failing in WordPress. What is the best alternative to fix this?
2
Answers
Thanks! but i found plugin all-in-one in wp, and this solve all my problems, the only thing i had to do is change the BD to the new domain and chang the user and password of this.
Please see the attack bash code bellow. Save it as
update-wordpress-domain.sh
for example and then do a chmod +x on it. Please edit/change/modify the db name, db user and password in the script the run it. It will ask for old domain and then for new domain. Then it will do the necessary changes:Then run it as
./update-wordpress-domain.sh
Please keep in mind that the script has to be run locally via SSH on the server where the database is actually located!.
The script will first create a mysql database dump, before actually change anything in the current database.