首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新wordpress和插件以获得新地址

更新wordpress和插件以获得新地址
EN

Stack Overflow用户
提问于 2013-12-20 08:19:20
回答 1查看 54关注 0票数 0

几个月前,我更改了我的网站的网址。现在,当旧地址走得很远时,我发现网站速度很慢。我在资料中找到了一些旧地址的参考资料。

代码语言:javascript
复制
<script type='text/javascript' src='http://www.afetter.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/static/common.js?ver=3.8'></script>
<script type='text/javascript' src='http://www.afetter.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow/nextgen_basic_slideshow.js?ver=3.8'></script>
<script type='text/javascript' src='http://www.coelhophotos.net/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.easing-1.3.pack.js?ver=3.8'></script>
<script type='text/javascript' src='http://www.coelhophotos.net/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/jquery.fancybox-1.3.4.pack.js?ver=3.8'></script>
<script type='text/javascript' src='http://www.coelhophotos.net/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/fancybox/nextgen_fancybox_init.js?ver=3.8'></script>

我是如何更新推荐信的?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-20 09:19:53

您需要在数据库中使用查找和替换,有很多方法可以做到这一点。

就我个人而言,我尝试并测试了Wordpress序列化PHP搜索工具,它使用序列化的方法来处理数据--因为wordpress首先以这种方式存储您的数据。

只需上传文件,并在您的网站上引用,即http://www.example.com/searchandreplace2.php

如果数据库文件无法自动找到,请放入数据库文件,并替换:

代码语言:javascript
复制
 Replace: http://www.coelhophotos.net/
 With: http://www.your-new-url.com/

注意尾斜杠,我一直把这个放进去。我通常不需要额外的选择,只要做香草味的。

编辑:

您可能需要手动设置wp-config.php以定义站点url,incase..。

代码语言:javascript
复制
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20699104

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档