Moving a wordpress site After some advice (and reassurance?!)
#1
Posted 28 August 2010 - 12:02 AM
I'm just about finalising an ecommerce site for a customer.
The domain name that they want the ecommerce site positioned at currently has a wordpress site in its place.
My question is, how would I go about moving the current wordpress based site across to another domain, so that I can place the ecommerce site in its place?
Is it just a case of backing up then reinstating the database information (via MySQL PHP myadmin) into the database on the new server, and FTP-copying all the files/folders from the old domain onto the new domain? Would it just work straight off the bat or is there anything else I need to be aware of? Never had to do this before, so a bit apprehensive...
Just to make clear, I'm not after advice on getting the ecommerce site working on the domain name, just how to move the old Wordpress site onto a new domain/database.
Thanks in advance,
Kyle
#2
Posted 28 August 2010 - 02:13 AM
Just my $0.02
#3
Posted 28 August 2010 - 07:16 AM
Once the Wordpress site has been moved, the root domain will be replaced by an entrance page I have coded up.
Kyle
#4
Posted 28 August 2010 - 08:12 AM
KCooper, on 28 August 2010 - 12:02 AM, said:
that's what I normally do.
Backup DB.
Create new hosted site, create new DB, restore DB
Copy WP files. Update wp-config.php with new credentials.
That should do it.
#5
Posted 28 August 2010 - 08:13 AM
If you're unsure of this, try it out on a temporary site so you're confident it'll work.
I usually create a temp site on ######s.com, which is free. Then delete it.
#6
Posted 28 August 2010 - 08:16 AM
iksol, on 28 August 2010 - 08:13 AM, said:
If you're unsure of this, try it out on a temporary site so you're confident it'll work.
I usually create a temp site on ######s.com, which is free. Then delete it.
OK, I guess I'm new here so can't be posting URLs, tut tut. PM me if you want to know a free web host for testing a Wordpress restore.
#9
Posted 28 August 2010 - 09:28 PM
The website is ######, followed by a dot com. And it is free to use, although not the most reliable, but what do you expect for free :-)
#10
Posted 28 August 2010 - 11:24 PM
Well I'm going to be moving it on monday, so hopefully all goes well!
Kyle
#11
Posted 30 August 2010 - 10:54 PM
The index page is displaying correctly, but every link I click on takes me back to the original site, so...
newdomain.com is set up correctly, a direct copy of olddomain.com. But when I click on newdomain.com/page1, newdomain.com/page2 etc, it takes me back to the old site. As I said, the database has been copied over correctly and connected, and I would have thought the site links would have been relative, not absolute... Also, if I manually type in newdomain.com/page1, I get a "not found on this server" error message.
Any ideas how to rectify this? I'm not too hot with WordPress...
Thanks in advance guys,
Kyle
#12
Posted 30 August 2010 - 11:05 PM
KCooper, on 30 August 2010 - 10:54 PM, said:
The index page is displaying correctly, but every link I click on takes me back to the original site, so...
newdomain.com is set up correctly, a direct copy of olddomain.com. But when I click on newdomain.com/page1, newdomain.com/page2 etc, it takes me back to the old site. As I said, the database has been copied over correctly and connected, and I would have thought the site links would have been relative, not absolute... Also, if I manually type in newdomain.com/page1, I get a "not found on this server" error message.
Any ideas how to rectify this? I'm not too hot with WordPress...
Thanks in advance guys,
Kyle
Have you changed these lines in wp_config.php to the new domain
define('WP_SITEURL', 'http://www.example.com');
define('WP_HOME', 'http://www.example.com');
#13
Posted 30 August 2010 - 11:17 PM
pat24, on 30 August 2010 - 11:05 PM, said:
define('WP_SITEURL', 'http://www.example.com');
define('WP_HOME', 'http://www.example.com');Those lines weren't already present in the wp_config.php file.
I added them in, and now the links all appear correct (ie, newdomain.com/page1) and no longer point to the old domain, but now they all provide the message "the requested url was not found on this server".
Thanks for the help so far though, mate.
Kyle
#14
Posted 30 August 2010 - 11:30 PM
KCooper, on 30 August 2010 - 11:17 PM, said:
I added them in, and now the links all appear correct (ie, newdomain.com/page1) and no longer point to the old domain, but now they all provide the message "the requested url was not found on this server".
Thanks for the help so far though, mate.
Kyle
you might also have to edit the database
the table wp_options or wp1_options their will be a site url field that will have to be changed also check the home field
if that fails try this plug in
http://www.velvetblu...in-update-urls/
#15
Posted 31 August 2010 - 07:11 PM
pat24, on 30 August 2010 - 11:30 PM, said:
the table wp_options or wp1_options their will be a site url field that will have to be changed also check the home field
if that fails try this plug in
http://www.velvetblu...in-update-urls/
This appears to be more or less working now.
Thanks so much, mate.
For clarity:
I installed and utilized the above plugin, then I also had to change the "perma links" setting via the admin backend to thier defaults.
Kyle
#16
Posted 31 August 2010 - 07:21 PM
KCooper, on 31 August 2010 - 07:11 PM, said:
Thanks so much, mate.
For clarity:
I installed and utilized the above plugin, then I also had to change the "perma links" setting via the admin backend to thier defaults.
Kyle
Glad you are sorted. where about in S.Wales, I am in Chepstow
#18
Posted 07 October 2010 - 02:09 PM
The problem is that within the wordpress database there's a collection of URLs pointing to the site that the content was developed on. All these URLs need changing to the new domain url. A particular problem is the length encoding that occurs on a few of the urls. The article will explain this.
I am currently developing wp content on localhost.com for my company and I've tested moving the wordpress database onto a live internet hosted site by editing URLs within the db and it worked.
FYI, the text editor I used to edit the sql db export before importing it again with the desired domain name was emacs.
Hope this helps.
Help



















