几个月前,我更改了我的网站的网址。现在,当旧地址走得很远时,我发现网站速度很慢。我在资料中找到了一些旧地址的参考资料。
<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>我是如何更新推荐信的?
发布于 2013-12-20 09:19:53
您需要在数据库中使用查找和替换,有很多方法可以做到这一点。
就我个人而言,我尝试并测试了Wordpress序列化PHP搜索工具,它使用序列化的方法来处理数据--因为wordpress首先以这种方式存储您的数据。
只需上传文件,并在您的网站上引用,即http://www.example.com/searchandreplace2.php
如果数据库文件无法自动找到,请放入数据库文件,并替换:
Replace: http://www.coelhophotos.net/
With: http://www.your-new-url.com/注意尾斜杠,我一直把这个放进去。我通常不需要额外的选择,只要做香草味的。
编辑:
您可能需要手动设置wp-config.php以定义站点url,incase..。
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');https://stackoverflow.com/questions/20699104
复制相似问题