Wordpress host IP changed

前端 未结 7 1511
抹茶落季
抹茶落季 2020-12-08 00:32

I\'ve got a Wordpress site on our home intranet that has run into trouble now that the IP address has changed - The index page loads, but not the CSS and I can\'t log in to

7条回答
  •  广开言路
    2020-12-08 01:03

    I ran into this problem before when I was migrating a site from test to production. Conveniently, MySQL has a string replace function.

    Try something like this:

    UPDATE wp_posts SET post_content = REPLACE(post_content,"http://localhost","http://www.myblog.com")
    

提交回复
热议问题