- This topic is empty.
-
AuthorPosts
-
March 9, 2009 at 10:23 am #24311alliwagnerParticipant
Hello,
Forgive me, I am new to WordPress.
I’m transferring my first WordPress site between 2 machines. I transferred the htdocs folder from Machine A to Machine B, so both versions look the same, but the content from Machine A did not load to Machine B.
How do I transfer the content (posts/pages/comments etc) from Machine A to Machine B?
thanks for your time,
AllisonMarch 9, 2009 at 11:29 am #54816davesgonebananasMemberThe biggest problem transferring the database acrosss machines is when they have different domain names. For instance, if you develop on a http://www.example.com/client and want to transfer to http://www.clientdomain.com/ .
The problem has to do with attachments. WordPress embeds the attachment url in the post, so if you insert an image in a page it will insert <img src="www.example.com/client/images/image.jpg" />. When you transfer the database over to another machine the contents of the post isn’t updated, so all your attachments point to the old domain.
I am still looking for a tidy solution to this problem.
March 9, 2009 at 11:48 am #54818Rob MacKayParticipant"TheDoc" wrote:I am no WP genius, and only just really getting into it, but if your site was small enough, would editing/republishing the pages correct those links?Oh yea it would, its just not the best way to spend your time :D lol
March 9, 2009 at 12:24 pm #54819davesgonebananasMember"Robskiwarrior" wrote:"TheDoc" wrote:I am no WP genius, and only just really getting into it, but if your site was small enough, would editing/republishing the pages correct those links?Oh yea it would, its just not the best way to spend your time :D lol
What that man said!
March 9, 2009 at 1:22 pm #54821davesgonebananasMemberTBH I really love WordPress, but it’s handling of attachments let’s it down badly.
For instance, the location of the attachment on disk is not stored in the database only the URL is. So if you want to do something with an attachment in a template / plugin you have to reverse engineer the location from that.
I’m going to be coming across this problem pretty soon when this site goes live so I’ll be scouring WordPress.org for plugins and stuff then.
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.