Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24311
    alliwagner
    Participant

    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,
    Allison

    #54816

    The 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.

    #54818
    Rob MacKay
    Participant
    "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

    #54819
    "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!

    #54821

    TBH 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.