Posts: 39
Threads: 7
Joined: Oct 2012
Hi Steven,
Sorry for my English, I hope you will all understand!
I need to copy my site (with actual database) on an other domain name.
I will copy the database, the files and I will change the connect informations of course.
Only I dont know if after I will can connect to admin commentics because, in the settings / system of commentics, there is the old domain name.
I will can connect to newdomain/comments/admin or it will be not possible because of the settings in the database?
Thanks a lot
Eric
Posts: 2,894
Threads: 59
Joined: Jun 2010
Hi Eric,
You should be able to log in fine to the admin panel after moving it. It will give you a little warning when you log in that the old domain name needs to be updated in Settings -> System. There are also a
few other settings that you will then need to update as well.
Have
you completed
the interview?
Posts: 39
Threads: 7
Joined: Oct 2012
(16-Mar-2013, 08:15 PM)Steven Wrote: Hi Eric,
You should be able to log in fine to the admin panel after moving it. It will give you a little warning when you log in that the old domain name needs to be updated in Settings -> System. There are also a few other settings that you will then need to update as well.
Thank you very much Steven !
Posts: 39
Threads: 7
Joined: Oct 2012
Hi Steven,
In the Manage / Pages, I have about 6000 pages. When I will copy the database in the new domain, I will have to change all the old url ??? I hope no.
Thanks
Eric
(16-Mar-2013, 11:18 PM)besric Wrote: (16-Mar-2013, 08:15 PM)Steven Wrote: Hi Eric,
You should be able to log in fine to the admin panel after moving it. It will give you a little warning when you log in that the old domain name needs to be updated in Settings -> System. There are also a few other settings that you will then need to update as well.
Thank you very much Steven !
Posts: 2,894
Threads: 59
Joined: Jun 2010
What I would do is a search-and-replace in phpMyAdmin. If you open phpMyAdmin, select the database on the left hand side, and then click the 'SQL' tab, you can run a search-and-replace query.
The query is like this:
Code:
UPDATE table_name SET field_name = REPLACE(field_name, 'find this string', 'replace found string with this string');
So, in this case, the following should work:
Code:
UPDATE pages SET url = REPLACE(url, 'old.com', 'new.com');
(Remember to replace old.com and new.com with your domain names)
Have
you completed
the interview?
Posts: 39
Threads: 7
Joined: Oct 2012
Hi Steven,
Do you think that I can change the new urls with new domain name directly in the dump of the database before upload it ?
For me it seems more easy !
Best regards
Eric
(17-Mar-2013, 03:33 PM)Steven Wrote: What I would do is a search-and-replace in phpMyAdmin. If you open phpMyAdmin, select the database on the left hand side, and then click the 'SQL' tab, you can run a search-and-replace query.
The query is like this:
Code:
UPDATE table_name SET field_name = REPLACE(field_name, 'find this string', 'replace found string with this string');
So, in this case, the following should work:
Code:
UPDATE pages SET url = REPLACE(url, 'old.com', 'new.com');
(Remember to replace old.com and new.com with your domain names)
Posts: 2,894
Threads: 59
Joined: Jun 2010
Yep, absolutely. That may be better because you can easily undo it.
Have
you completed
the interview?
Posts: 39
Threads: 7
Joined: Oct 2012
Ok, thanks a lot Steven and have a nice day !
(17-Mar-2013, 07:09 PM)Steven Wrote: Yep, absolutely. That may be better because you can easily undo it.
Posts: 13
Threads: 2
Joined: Apr 2019
Steven, I am moving from HTTP to HTTPS. I saw your instructions earlier in this thread for changing domain names. I noticed these instructions were written back in the 2.x days. Should I use the same instructions for 3.4?
Posts: 2,894
Threads: 59
Joined: Jun 2010
If you're only changing from HTTP to HTTPs then there's very little that needs doing.
It should be as simple as updating the 'Site URL' and 'Commentics URL' fields in 'Settings -> System'.
If you let me know if that works I'll create an FAQ for it.
Have
you completed
the interview?