[wordpress插件] Allowed Routes允许的路线

wordpress 插件 文章 2020-02-16 14:30 554 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Define allowed routes for your website, all other routes will return a 404 error.

为您的网站定义允许的路由,所有其他路由都将返回404错误。

Permalinks will be overruled.

永久链接将被否决。

Login, Backend routes and local files (like wp-login.php) are always available to prevent a lockout.

登录,后端路由和本地文件(如wp-login.php)始终可用,以防止锁定。

Also delete all your page caches after enabling to prevent unwanted routing behavior.

在启用后也删除所有页面缓存,以防止不必要的路由行为。

Use cases:

用例:

    • Absolute control over all permalinks
    • 对所有永久链接的绝对控制

    • Prevent unwanted search engine indexing
    • 防止不必要的搜索引擎索引

    • Be sure no custom post type adds unwanted permalinks
    • 确保没有自定义帖子类型会添加不必要的永久链接

    • No frontend needed
    • 不需要前端

    Important:

    重要提示:

      • The routing overrules permalinks and works like a whitelist.

      • 路由会取代永久链接,并且像白名单一样工作。

        Only correct entered routes will go through.

        只有正确输入的路线才能通过。

        You should test the routing before using on production environments

      • 在生产环境上使用之前,应先测试路由

      • Be careful using several routing- or redirect plugins at the same time
      • 请注意同时使用多个路由或重定向插件

      • Do not forget to delete all your page caches after enabling/disabling the routing to prevent unwanting routing behavior
      • 在启用/禁用路由之后,请不要忘记删除所有页面缓存,以防止有害的路由行为

      Behaviour:

      行为:

        • The used protocol (HTTP or HTTPS) will be ignored
        • 使用的协议(HTTP或HTTPS)将被忽略

        • GET params will be ignored
        • GET参数将被忽略

        • Routes are case sensitive
        • 路由区分大小写

        Syntax / Wildcards:

        语法/通配符:

          • The route / allows the index page (Check the checkbox \”Allow index page\”)
          • 路线/允许索引页面(选中“允许索引页面”复选框)

          • Wildcard * allows a single term with an arbitrary value (e.g. category//page/)
          • 通配符*允许使用带有任意值(例如category / / page / )的单个术语

          • Wildcard ** permits all possible combinations of terms (e.g. category/**) This wildcard is only allowed at the end of a route
          • 通配符**允许所有可能的术语组合(例如,类别/ **)。仅在路线末尾才允许使用此通配符

          • Wildcards are only allowed as complete terms.

          • 通配符仅可作为完整条款使用。

            Correct: /foo//bar/** Wrong: /foo/ba/test**

          • 正确:/ foo / / bar / **错误:/ foo / ba / test **

安装步骤

    1. Unzip and upload the plugin package into the plugins directory
    2. 将插件包解压缩并上传到plugins目录

    3. Login to the dashboard and activate the plugin
    4. 登录到仪表板并激活插件

    5. Click Settings to configure the plugin
    6. 单击“设置”以配置插件

下载地址
https://downloads.wordpress.org/plugin/allowed-routes.1.1.zip
-EOF-

AI助手支持GPT4.0