[wordpress插件] Backwards Compatible Permalinks向后兼容的永久链接

wordpress 插件 文章 2020-02-28 13:30 572 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Backwards Compatible Permalinks helps prevent 404 errors when switching between permalink structures.

向后兼容的永久链接有助于防止在永久链接结构之间切换时出现404错误。

It achieves this by appending a set of backwards compatible post rewrite rules.

它通过附加一组向后兼容的后重写规则来实现。

This ensures posts are still accessible at their previous permalink after the permalink structure is updated.

这样可以确保在更新永久链接结构后,仍可以在其先前的永久链接上访问帖子。

Example

示例

Let’s say your permalink structure is set to “Month and name” and you have a post titled “I Love WordPress.”

假设您的永久链接结构设置为“月份和名称”,而您的帖子为“我爱WordPress”。

That particular post would live at https://example.com/2019/03/i-love-wordpress/.

该特定帖子将发布在 https://example.com/2019/03/i-love-wordpress/

But what if you wanted to switch to the “Post name” permalink structure and have your post live at https://example.com/i-love-wordpress/ instead?

但是,如果您想切换到“帖子名称”永久链接结构并将帖子发布在 https://example.com/i-love-wordpress/ 上怎么办?

>

>

You could but this would result in the existing post permalink 404ing when visited.

您可以,但是访问时会导致现有的永久链接404ing。

Which is problematic if the previous URL was bookmarked or shared on social media.

如果以前的URL被标记为书签或在社交媒体上共享,这是有问题的。

With Backwards Compatible Permalinks installed your post would be accessible at both the old and new permalink structures:

安装了向后兼容的永久链接后,您可以在旧的和新的永久链接结构上访问您的帖子:

    • https://example.com/2019/03/i-love-wordpress/
    • https://example.com/2019/03/i-love-wordpress/

    • https://example.com/i-love-wordpress/
    • https://example.com/i-love-wordpress/

    Caveats

    注意事项

      • This plugin does not work retroactively.

      • 此插件无法追溯使用。

        i.e. you must have the plugin installed and activated prior to switching permalink structures before backwards compatibility will work.

      • 也就是说,在切换永久链接结构之前,必须先安装并激活插件,然后才能向后兼容。

      • Currently only standard posts are supported.
      • 当前仅支持标准帖子。

      • Backwards compatibility is not supported between certain permalink structure updates.

      • 某些永久链接结构更新之间不支持向后兼容。

        This is due to a clash between permalink structure regex matching.

      • 这是由于永久链接结构正则表达式匹配之间存在冲突。

      • Backwards compatibility is only provided between the most recent permalink structure update.

      • 仅在最新的永久链接结构更新之间提供向后兼容性。

        i.e. you cannot change your permalink structure 3 times and have backwards compatibility across all 3 structures.

      • 也就是说,您无法更改3次永久链接结构,并且无法在所有3种结构中都具有向后兼容性。

      Deactivate or uninstall

      停用或卸载

      After deactivating or uninstalling this plugin please ensure you visit Settings > Permalinks in the WordPress admin area to flush your rewrite rules.

      停用或卸载此插件后,请确保您访问WordPress管理区域中的“设置”>“永久链接”以刷新您的重写规则。

      Contributing

      贡献

      Contributions are welcomed on GitHub.

      捐款欢迎在GitHub上

      From within WordPress

      在WordPress内部

        1. Visit ‘Plugins > Add New’.
        2. 访问“插件>新增”。

        3. Search for ‘Backwards Compatible Permalinks’.
        4. 搜索“向后兼容的永久链接”。

        5. Activate Backwards Compatible Permalinks from your Plugins page.
        6. 从“插件”页面激活向后兼容的永久链接。

        Manually

        手动

          1. Upload the backwards-compatible-permalinks folder to the /wp-content/plugins/ directory.
          2. backwards-compatible-permalinks 文件夹上载到 / wp-content / plugins / 目录。

          3. Activate the Backwards Compatible Permalinks plugin through the ‘Plugins’ menu in WordPress.
          4. 通过WordPress中的“插件”菜单激活向后兼容的永久链接插件。

下载地址
https://downloads.wordpress.org/plugin/backwards-compatible-permalinks.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Alx ExtensionsAlx扩展
[wordpress插件] Crypto-Currency Shortcode加密货币简码
[wordpress插件] Cryptocurrency Portfolio Tracker加密货币投资组合追踪器
[wordpress插件] Author Name in RSS FeedRSS Feed中的作者姓名
[wordpress插件] CloudFlare Rocket Loader Manual SettingsCloudFlare Rocket Loader手动设置
随便看看
阿里云com、cn域名续费优惠码(2020年3月可用) 2863
线上防疫题库正确答案 2932
线上防疫题库正确答案(多选题) 4825
微信设置不可以使用小程序(游戏小程序) 5634
adsense申请已经支付的订单回退的网址 3212
BT面板查看网站入口、账号密码的命令 6009
ucloud海外服务器超级优惠券 3274
根据您的消费情况,您的延停权益已发生变化,变更后的延停权益为延停额度20.00元 5831
为什么我们喜欢迈克尔杰克逊。 4164
阿里云com、cn域名续费优惠码(2020年5月可用) 3586