[wordpress插件] Attachment Pages Redirect附件页面重定向

wordpress 插件 文章 2020-02-22 22:10 570 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

There are three possible scenarios where this plugin does something:

在三种可能的情况下,此插件会执行某些操作:

A) A visitor lands on an attachment page and the parent post is available (not in trash or deleted).

A)访问者登陆附件页面,并且父帖子可用(不在垃圾箱中或已删除)。

A 301 redirect will be issued to redirect the visitor to the parent post.

将发出301重定向,以将访问者重定向到父帖子。

B) A visitor lands on an attachment page and the parent post was already deleted from trash.

B)访问者登陆附件页面,并且父帖子已从垃圾箱中删除。

A 302 redirect is issued to home page (this can be changed to 301 if you want, see FAQ for more details).

将302重定向发布到主页(如果需要,可以将其更改为301,有关更多详细信息,请参阅FAQ)。

C) A visitor lands on an attachment page and the parent post is in trash, therefore not available for the visitor.

C)访问者落在附件页面上,并且父帖子处于垃圾箱中,因此该访问者不可用。

It returns a 404 error code to prevent endless redirection loop in old WP releases and redirecting to trashedot available posts.

它返回404错误代码,以防止在旧的WP版本中出现无限的重定向循环,并重定向到已删除/不可用的帖子。

There is no options page, simply activate it and will do the job.

没有选项页面,只需激活它即可完成工作。

If you're happy with the plugin please don't forget to give it

如果您对插件满意,请不要忘记给它

a good rating, it will motivate me to keep sharing and improving this plugin (and others).

评分,这将激励我继续共享和改进此插件(和其他插件)。

Requirements

要求

    • WordPress 4.8 or higher.
    • WordPress 4.8或更高版本。

安装步骤

    • Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation (or install it directly from your dashboard) and then activate the Plugin from Plugins page.

    • 解压缩zip文件,然后将内容拖放到WordPress安装的 wp-content / plugins / 目录中(或直接从仪表板安装),然后激活“从插件插入”页面。

下载地址
https://downloads.wordpress.org/plugin/attachment-pages-redirect.1.1.1.zip
-EOF-

AI助手支持GPT4.0