Forums

Links won't work after migrating from localhost (11 posts)

  1. jimwelch
    Member
    Posted 3 years ago #

    After developing and finishing my new, bright, and shiny WP site locally using MAMP, I just tried migrating it online to my "live" server at GoDaddy. From the surprisingly little info I could find on the topic, I:
    1. backed up my local files and database
    2. did the export/import of the .xml file from the local server to the "live" server (which already had WP installed)
    3. edited my config file to the correct database username/password then uploaded
    4. copied WP files from my local backup to live server (having to overwrite previous wp files.

    This worked for the most part. However, with the exception of external URL's, I cannot get my page links to work (although the page links in my navbar do work). I've tried overwriting the HTML in the page templates to refer links absolutely but that didn't work.

    Would someone PLEASE help me with reconnecting these page links??

  2. ParkerK
    Member
    Posted 3 years ago #

    URL?

  3. jimwelch
    Member
    Posted 3 years ago #

    Thanks ParkerK, for the attention.
    The URL is http://www.bluetrailcreative.com

    I'd appreciate any help!

  4. Otto
    Tech Ninja
    Posted 3 years ago #

  5. jimwelch
    Member
    Posted 3 years ago #

    Thanks, Otto. Can you suggest how to right these wrong links? When I was developing on my local server via MAMP I didn't have any trouble with images showing, now since I've migrated to a live server, those image references are obviously broken/incorrect. To clarify, I'm referring to referencing the images in the HTML within custom template pages, not through the "Admin-write" posts/pages (if that even makes a difference). Unfortunately, I can't seem to understand how/where to correctly reference an image. I can't seem to do it using an absolute path (e.g.www.mydomain.com/images/pic.jpg) or by using a relative path . Do I need to somehow reference the "uploads" folder, instead?

    Here's a live example--http://bluetrailcreative.com/work/ktaylor/ On the right should be six images, from my images directory, but they're not showing. For that matter, the bigger image on the left should be showing, too.
    Any help is greatly appreciated!!!

  6. onewalrus
    Member
    Posted 3 years ago #

    I would suggest using the "backup-wordpress" plugin.
    Perform a complete site backup including databases, then migrate that to the new server. You will need to edit the config.php with all pertinent information in order for all to function.

    You must be running this locally because your links are dead at "localhost:8888"

  7. Otto
    Tech Ninja
    Posted 3 years ago #

    Can you suggest how to right these wrong links?

    Err... Edit the posts and fix the links? These are actually in your post content. There is no fix short of actually going in and fixing them.

    As for the rest of your question, I don't understand the problem. Just fix the links. Like here's one:
    http://bluetrailcreative.com/wp-content/uploads/2008/07/screen-capture-181.png

    And another:
    http://bluetrailcreative.com/wp-content/uploads/2007/07/blurb_logo_small.gif

    Use that in the image tag. Simple.

    Also, on this page: http://bluetrailcreative.com/work/ktaylor/

    I see 6 small box images on the right, under Other Work. What's the problem here, exactly?

  8. nerdess
    Member
    Posted 3 years ago #

    Err... Edit the posts and fix the links? These are actually in your post content. There is no fix short of actually going in and fixing them.

    @Otto42: What about a database query?

    Something like

    UPDATE wp_posts SET guid = replace(guid,"http://localhost/wordpress","http://blabla.de")

    :o)

  9. nerdess
    Member
    Posted 3 years ago #

    And the same for the post_content table:

    UPDATE wp_posts SET post_content = replace(post_content,"http://localhost/wordpress","http://blablabla.de")
  10. moshu
    Member
    Posted 3 years ago #

  11. bmilliot
    Member
    Posted 2 years ago #

    Had sort of the same problem.

    Admin link was linking back to localhost, went in to localhost/admin and changed the settings WordPress address and blog address to host server and that automatically redirected me to the host/admin but with the wrong url.

    So...found this:

    http://codex.wordpress.org/Changing_The_Site_URL

    and it worked for me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.