Title: WP CDN Rewrite
Author: Chris Scott
Published: <strong>2014 年 1 月 7 日</strong>
Last modified: 2016 年 9 月 27 日

---

搜索插件

![](https://ps.w.org/wp-cdn-rewrite/assets/banner-772x250.png?rev=834435)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp-cdn-rewrite_d94965.svg)

# WP CDN Rewrite

 作者：[Chris Scott](https://profiles.wordpress.org/chrisscott/)

[下载](https://downloads.wordpress.org/plugin/wp-cdn-rewrite.0.4.0.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-cdn-rewrite/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-cdn-rewrite/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-cdn-rewrite/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-cdn-rewrite/#developers)

 [支持](https://wordpress.org/support/plugin/wp-cdn-rewrite/)

## 描述

This plugin allows you to rewrite the root url of assets, css, and js files. This
allows you to load these resources from an external URL improving the page load 
time by taking advantage of parallel browser requests.

This plugin requires the use of the [Voce Settings API](https://github.com/voceconnect/voce-settings-api)
library.

If using [Composer](http://getcomposer.org) for dependency management, you can alternatively,
after including the plugin files, run composer install to retreive the Voce Settings
API dependency.

## 安装

 1. Upload `cdn-rewrite` to the `/wp-content/plugins/` directory
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. Once the plugin has been activated, navigate to the CDN Rewrite settings page and
    set the appropriate settings.

## 评价

![](https://secure.gravatar.com/avatar/c4b16a58a7e17af486382be441edeafa8e1a7497dc904fcdb5171c7d708294a2?
s=60&d=retro&r=g)

### 󠀁[Perfect for my elementor enabled sites](https://wordpress.org/support/topic/perfect-for-my-elementor-enabled-sites/)󠁿

 [Sudhir Dixit](https://profiles.wordpress.org/sudhirdixit/) 2020 年 6 月 23 日

Hello Team, nice plugin, i have wasted lot of time to integrated CDN to one of my
client site, but every time it fails because of Elementor was not loading CDN Urls
automatically. i have used this plugin and it works perfectly. Please release latest
updates of this plugin, even this version is working properly. Thank you.

![](https://secure.gravatar.com/avatar/fa4cfc41663ee3b6880bec0c153a94c55193b53832b291b79198f80fbc1c9415?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!](https://wordpress.org/support/topic/great-plugin-23773/)󠁿

 [Suanlian Tangpua](https://profiles.wordpress.org/suanlian/) 2019 年 11 月 22 日

Only this plugin work for me. I tried CDN Enabler, WPRocket (inbuilt CDN Integration)
Nothing works for me. Only this plugin can integrate CDN properly for single post
statics file like images, js, css etc. Guys who used all the above mention plugin
to integrate CDN please check your single post statics.

![](https://secure.gravatar.com/avatar/ebd910619dce0d80ba60f5d56ef8081de289a08f1ede38f474375996f22d3298?
s=60&d=retro&r=g)

### 󠀁[Easy to use, works very good for me (+ 1 request)](https://wordpress.org/support/topic/easy-to-use-works-very-good-for-me-1-request/)󠁿

 [Sahar](https://profiles.wordpress.org/saharusa/) 2016 年 12 月 6 日

Hi, Thanks for this plugin. Really does a good job. I use it together with WP Super
Cache and Autoptimize. I have a small suggestion, it can be a great option in my
opinion to add multi host support, for example: cdn1.domainname.com, cdn2.domainname.
com etc. so if you have multi hosts/servers distro the plugin will divide the load
between them.

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/)

## 贡献者及开发者

「WP CDN Rewrite」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Chris Scott ](https://profiles.wordpress.org/chrisscott/)
 *   [ voceplatforms ](https://profiles.wordpress.org/voceplatforms/)
 *   [ prettyboymp ](https://profiles.wordpress.org/prettyboymp/)
 *   [ Kevin Langley Jr. ](https://profiles.wordpress.org/kevinlangleyjr/)

[帮助将「WP CDN Rewrite」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-cdn-rewrite)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-cdn-rewrite/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-cdn-rewrite/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-cdn-rewrite/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-cdn-rewrite/)。

## 更新日志

#### 0.4.0

 * Fixing bug with relative protocol and explicitly checking scheme

#### 0.3.0

 * Abstracting logic from wp-cdn-rewrite.php in order for the `class_exists` check
   to work as intended when APC cache is enabled

#### 0.2.1

 * Updating version numbers and change logs

#### 0.2.0

 * Testing WordPress 4.4
 * Adding srcset support

#### 0.1.5

 * Testing with WordPress 4.1

#### 0.1.4

 * Fixing error when file does not exist and fixing _doing_it_wrong call

#### 0.1.3

 * Adding Grunt build files

#### 0.1.2

 * Adding Capistrano deploy files

#### 0.1.1

 * Fixing issue with URLs without a path part.

#### 0.1.0

 * Initial version.

## 额外信息

 *  版本 **0.4.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.3 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-cdn-rewrite/)
 * 标签
 * [cdn](https://cn.wordpress.org/plugins/tags/cdn/)[rewrite](https://cn.wordpress.org/plugins/tags/rewrite/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-cdn-rewrite/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-cdn-rewrite/reviews/)

## 贡献者

 *   [ Chris Scott ](https://profiles.wordpress.org/chrisscott/)
 *   [ voceplatforms ](https://profiles.wordpress.org/voceplatforms/)
 *   [ prettyboymp ](https://profiles.wordpress.org/prettyboymp/)
 *   [ Kevin Langley Jr. ](https://profiles.wordpress.org/kevinlangleyjr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-cdn-rewrite/)