[wordpress插件] Absolute-to-Relative URLs相对于绝对URL

wordpress 插件 文章 2020-01-24 16:40 550 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

If you were to use this on a website like http;//example.com/test/testing/, you would get results like these:

如果要在 http; // example.com/test/testing / 之类的网站上使用此功能,则会得到以下结果:

        • Before: http;//example.com/test/another-test/#anchor
        • 之前:http; // example.com/test/another-test/#anchor

        • After: ../another-test/#anchor
        • 之后::../ another-test /#anchor

          • Before: http;//example.com/wp-content/themes/twentyten/style.css
          • 之前:http; // example.com/wp-content/themes/twentyten/style.css

          • After: /wp-content/themes/twentyten/style.css
          • 之后:/wp-content/themes/twentyten/style.css

            • Before: https;//example.com/wp-content/themes/twentyten/style.css
            • 之前:http s ; // example.com/wp-content/themes/twentyten/style.css

            • After: https;//example.com/wp-content/themes/twentyten/style.css
            • 之后::http s ; // example.com/wp-content/themes/twentyten/style.css

              • Before: http;//google.com/test/
              • 之前:http; // google.com/test /

              • After: //google.com/test/
              • 之后://google.com/test /

                • Before: ../../../../../../../../#anchor
                • 之前:../../../../../../../../# anchor

                • After: /#anchor
                • 之后: /#anchor

                • After ($output_type=1): ../../#anchor
                • 之后 $ output_type = 1 ../../# anchor

    All string parsing.

    所有字符串解析。

    No directory browsing.

    目录浏览。

    If you're looking for a plugin that will automatically convert all URLs on your WordPress site, instead check out my other plugin, WP-HTML-Compression.

    org / extend / plugins / wp-html-compression /“> WP-HTML-Compression

    Before you copy this code and add it into your own, keep in mind that there will probably be future updates.

    在复制此代码并将其添加到自己的代码之前,请记住,将来可能会有更新。

    Keeping the code within an installed plugin will make sure that you’re notified.

    将代码保存在已安装的插件中​​可确保您收到通知。

安装步骤

    1. Download the plugin (zip file).
    2. 下载插件(zip文件)。

    3. Upload and activate the plugin through the “Plugins” menu in the WordPress admin.
    4. 通过WordPress管理员中的“插件”菜单上载并激活插件。

下载地址

https://downloads.wordpress.org/plugin/absolute-to-relative-urls.zip

https://downloads.wordpress.org/plugin/absolute-to-relative-urls.zip

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Codup WooCommerce LoyaltyCodup WooCommerce忠诚度
[wordpress插件] C4D Woocommerce CategoryC4D Woocommerce类别
[wordpress插件] Auto Login User on Register WordPress自动登录WordPress注册用户
[wordpress插件] Brid Video Easy Publish布里德视频轻松发布
[wordpress插件] Business Block Widget业务块小部件
随便看看
API v3 图片上传400,文件二进制内容不是图片问题,找不到问题了 788
会员卡的储值功能相关问题 716
特约子商户该产品权限已被冻结,请前往商户平台>产品中心检查后重试? 3541
关于微信支付V3-JSAPI下单API接口获取用户在服务商appid下的唯一标识 1856
小程序如何实现:根据用户微信支付分分值,提供不同的服务? 797
用户注册了服务商的小程序,那服务商可以查询用户的支付分有多少吗? 621
为什么我登录微信支付商户平台 没有产品中心了 账户中心和数据中心跳转同一个界面? 2622
小程序接入微信支付显示已申请是什么回事? 1585
【微信商户】提现规则调整后怎么有些不自动提现了?而且还被冻结?这个怎么解决? 904
用手机申请的商户号,突然不能用了? 683