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

wordpress 插件 文章 2020-02-16 14:30 634 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Admin-Logo-Title-URL Changer管理员徽标标题URL更改器
[wordpress插件] Cartara制图
[wordpress插件] Automatic Expiration for Categories自动过期的类别
[wordpress插件] ACF: Dynamic Year Select FieldACF:动态年份选择字段
[wordpress插件] Classifieds分类
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128
如何解决渲染层网络错误Failed to load media? 17394
小程序找号找回 释放昵称? 3253
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 3108
删除部分微信用户个人数据的通知,怎么删除? 6381