WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] SRC locations are messed up bad! (10 posts)

  1. braddock16
    Member
    Posted 5 years ago #

    Hey guys

    I developed my blog on wamp local server and then transferred everything to an online server.

    But now, everything in the online site is messed up. All image sources are pointing to "localhost".

    Does anybody know how I can fix this??

    Regards,
    Brad

  2. Samuel B
    moderator
    Posted 5 years ago #

  3. braddock16
    Member
    Posted 5 years ago #

    Thanks, but what about the INTERNAL issues in the admin area? When I try to edit my posts or add images, they all point to localhost instead of the real url???

  4. braddock16
    Member
    Posted 5 years ago #

    Hey samboll, I followed that link you gave and done the url changes in phpmyadmin.

    But I'm frustrated because my issue is not going away!

    ALL the urls in my posts that point to images are still "localhost" and not the real url. Even the custom fields urls stay localhost!

    Please help me I'll really appreciate it.

    Regards,
    Brad

  5. You need to edit your posts to point to the right place. You should be able to do a search/replace in the SQL with phpMyAdmin.

  6. braddock16
    Member
    Posted 5 years ago #

    That sounds like a plan. Can you or anybody else give me a query that I can run so that I can edit the values in the "post_content" section to change the urls to the new ones?

    Thanks!
    Brad

  7. braddock16
    Member
    Posted 5 years ago #

    Anybody out there that can help me???

  8. iridiax
    Member
    Posted 5 years ago #

  9. From ZimmerTech

    To search and replace a text string, start up phpMyAdmin, and click on your database name that you want to run the search and replace through. At the top of the window, click on the "SQL" tab.

    In the text box, enter the following code. This is the generic setup, so edit to satisfy your needs:

    UPDATE tablename SET tablefield = replace(tablefield,"findstring","replacestring");

  10. figaro
    Member
    Posted 5 years ago #

    Maybe this will help.

    http://educhalk.org/blog/?p=50

Topic Closed

This topic has been closed to new replies.

About this Topic