[wordpress插件] Change WP URL更改WP URL

wordpress 插件 文章 2020-03-21 20:40 585 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

We do a lot of WordPress installs for clients when we set up new websites for them.

当我们为客户建立新网站时,我们为他们做了很多WordPress安装。

One hassle we always go through is setting up the development site as a sub-domain or as a complete other domain, and then having to move it to the new domain.

我们经常遇到的一个麻烦是将开发站点设置为子域或完整的其他域,然后将其移至新域。

Since WordPress uses absolute URLs in posts, links, etc., editing by hand is definitely not an option.

由于WordPress在帖子,链接等中使用绝对URL,因此绝对不能选择手动编辑。

We also couldn’t find a really good solution, so I wrote a plugin that will go through all of your posts, pages, options and guids and update your old domain to your new domain!

我们也找不到真正好的解决方案,所以我写了一个插件,可以浏览您所有的帖子,页面,选项和指南,并将您的旧域更新为新域!

安装步骤

    1. Upload the folder change-wp-url to the /wp-content/plugins/ directory
    2. 将文件夹 change-wp-url 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Backup your database.

    6. 备份数据库。

      (Either get a plugin to do this, or do it with phpMyAdmin)

    7. (要么获取插件来执行此操作,要么使用phpMyAdmin来完成此操作)

    8. Use this BEFORE you move your install to the new location: this should be the last thing you do before moving
    9. 在将安装移动到新位置之前使用此功能:这应该是在移动之前要做的最后一件事

    10. Enter your new URL WITH NO TRAILING SLASH and click “Update”
    11. 输入您的新URL 没有拖尾线,然后单击“更新”

    12. Once you run this, the “old” WordPress URL will stop working, so move all of your files and database to the new location (if necessary), go to your “new” URL and re-login
    13. 运行此命令后,“旧的” WordPress URL将停止工作,因此将所有文件和数据库移至新位置(如有必要),转到“新” URL并重新登录

    14. Go to your Settings->General tab, and update the Blog Address, if necessary (only if your blog url is different from base url)
    15. 转到“设置”->“常规”标签,并在必要时更新博客地址(仅当您的博客网址与基本网址不同时)

    16. Deactivate and delete this plugin
    17. 停用并删除此插件

下载地址
https://downloads.wordpress.org/plugin/change-wp-url.1.0.zip
-EOF-

AI助手支持GPT4.0