Select Page

WordPress博客批量替换网址的方法

WordPress博客批量替换网址的方法

有些时候出于某种原因,我们需要更换博客内的链接地址,但如果数量过多的话就需要批量化的处理办法

登录phpmyadmin后,选择你的数据库-选择SQL菜单,执行以下代码:

UPDATE wp_posts SET post_content = replace(post_content, 'https://bwh1.net','https://bwh8.net');

这样就将WordPress博客内所有bwh1的链接替换为bwh8了。

关于作者

Jackie Sung

Jackie Sung, also known by his nick-name KK, always strives for the best and learn from the best. Influenced by the age of Internet, for the last few years, in his spare time, he's been working and living as a Freelance Web Engineer/ Web Developer & Designer/ Amateur Photographer/ Husky Lover. The work he provides is of highest quality, fully-customized responsive, and tested in a wide range of devices, which typically covers both front-end (HTML5/ CSS3/ JavaScript) and back-end (WordPress as the CMS) responsibilities.

留下你的评论

电子邮件地址不会被公开。 必填项已用*标注

17 − 17 =

Pin It on Pinterest

Share This