官方SimpleHost的博客 简单云 云主机 一键建站 最强主机's Archivers

From admin on 2014-06-14 16:27:29

【简单云】-WordPress更换域名后整体修改图片/资源/媒体链接的方法

简单主机2.0 82元/月 马上注册

首先在博客所在的数据库里找到一个表名为****posts,记录下此表名。然后进入phpmyadmin,进入到博客所在数据库,点击sql,执行以下查询(将表名更换为上面记录下的表名):

UPDATE wp_blogposts SET post_content = replace(post_content, 'http://www.old.com', 'http://www.new.com');

当然了,要将新旧域名替换进去,如果提示成功就完成了,如果提示#1146 – Table ‘****’ doesn’t exist,说明你的表名有问题。

 

网上创业步骤】:1 开通云主机、域名  2 建设官方网站 3 整体网站推广 ... 成功见证 创业技能素质培训

更多有价值的内容:

简单主机官方网站

简单主机官方网店

简单主机官方相册

简单主机官方博客

 <img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023e8D.jpg" alt="QQ空间" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023e8D.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023gVu.jpg" alt="腾讯微博" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023gVu.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023m7L.jpg" alt="新浪微博" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023m7L.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023rYs.jpg" alt="网易微博" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023rYs.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023XTD.jpg" alt="搜狐微博" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023XTD.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023lCT.jpg" alt="人民网微博" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023lCT.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023fWw.jpg" alt="微信公众号" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133023fWw.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024ckv.jpg" alt="朋友网" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024ckv.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024eQe.jpg" alt="淘宝网" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024eQe.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024kt5.jpg" alt="豆瓣网" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024kt5.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024Ffm.jpg" alt="百度空间" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024Ffm.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024U2G.jpg" alt="新华微博" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133024U2G.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025kyl.jpg" alt="优酷网" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025kyl.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025LTF.jpg" alt="人人网" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025LTF.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025DDr.jpg" alt="开心网" width="36" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025DDr.jpg" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025TSZ.gif" alt="天涯社区" width="49" height="36" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/133025TSZ.gif" /><img src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/1330250qQ.jpg" alt="简单云,简单主机,简单建站" width="260" height="27" border="0" data-cke-saved-src="http://blog.simplehost2.com/wp-content/uploads/auto_image/2014/06/1330250qQ.jpg" />

微信号:simplehost

<img title="xgetqrcode" src="http://blog.simplehost2.com/wp-content/uploads/2014/04/xgetqrcode.jpg" alt="" width="150" height="150" />

扫一扫,了解更多...

查看完整版本: 【简单云】-WordPress更换域名后整体修改图片/资源/媒体链接的方法

Tags:


©官方SimpleHost的博客 简单云 云主机 一键建站 最强主机