Title: CDN Rewrites
Author: Phoenixheart
Published: <strong>23 de setembre de 2009</strong>
Last modified: 6 de desembre de 2009

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

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

# CDN Rewrites

 Per [Phoenixheart](https://profiles.wordpress.org/phoenixheart/)

[Baixa](https://downloads.wordpress.org/plugin/cdn-rewrites.1.0.1.zip)

 * [Detalls](https://ca.wordpress.org/plugins/cdn-rewrites/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/cdn-rewrites/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/cdn-rewrites/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/cdn-rewrites/#developers)

 [Suport](https://wordpress.org/support/plugin/cdn-rewrites/)

## Descripció

After releasing a WordPress plugin called [Free CDN](http://www.phoenixheart.net/wp-plugins/free-cdn/),
I got a request to create another that supports rewriting hosts for commerical CDNs–
those big names like Limelight, Akamai, Velocix, EdgeCast etc.

Basically, this plugin allows a WordPress user to specify two important variables:
an orgin host (says http://www.yoursite.com) and a «destination host» (like http://
www.static.yoursite.com). It will then find all the static contents from that orgin
host and rewrite them into the destination so that they will be delivered from there.

### Features

 * Multiple profiles are supported, allowing different contents to be treated differently
 * You can exclusively select the content types for each profile – currently supporting
   JS, CSS, images, inline background images, and <object>’s
 * Additional URL’s can be added as excludes
 * Debug mode gives you a good preview to make sure nothing goes wrong
 * Works normally with other plugins. Especially useful if run along with WP Super
   Cache
 * AJAX’ed admin section makes it quick and easy to adjust the settings

### History

 * 1.0.1

 1. Added uninstall handler to remove all settings and data upon being installed
 2. Added link to Configuration page on plugins page
 3. Added PayPal Donate button
 4. Minor bug fixes and improvements

* 1.0.0 Initial version

## Captures

[⌊The profile list⌉⌊The profile list⌉[

The profile list

[⌊"Add new profile" form⌉⌊"Add new profile" form⌉[

«Add new profile» form

[⌊Options form⌉⌊Options form⌉[

Options form

## Instal·lació

As usual:

 1. Download the plugin
 2. Extract into a folder
 3. Upload the entire to `wp-content/plugins/` directory of your WordPress installation
 4. Enable it via Plugins panel
 5. Head to Settings->CDN Rewrites and create the first profile.
 6. You’re ready to go!

## PMF

  My JavaScripts got broken! My cookies just don’t work! [Insert error here]

If your javascript doesn’t work anymore, best bet is to uncheck «External JavaScript
includes» from «Using CDN on these contents» option section. You can also enable
Debug mode to see which files get involved, and try excluding them one by one to
find out the problematic one and deal with it for good.

  Why doesn’t the plugin parse the external stylesheet and rewrite the background
images there too?

There should be no need. If the stylesheet got rewritten and is served through a
destination host, all relative (most commonly) background images defined inside 
it will be pulled from that host too.

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«CDN Rewrites» és programari de codi obert. La següent gent ha col·laborat en aquesta
extensió.

Col·laboradors

 *   [ Phoenixheart ](https://profiles.wordpress.org/phoenixheart/)

[Traduïu «CDN Rewrites» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/cdn-rewrites)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/cdn-rewrites/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/cdn-rewrites/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/cdn-rewrites/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/cdn-rewrites/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versió **1.0.1**
 *  Darrera actualització **fa 17 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 2.2 o posterior **
 *  Provada fins a **3.0.5**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/cdn-rewrites/)
 * Etiquetes
 * [bandwidth](https://ca.wordpress.org/plugins/tags/bandwidth/)[cdn](https://ca.wordpress.org/plugins/tags/cdn/)
   [content delivery network](https://ca.wordpress.org/plugins/tags/content-delivery-network/)
   [rewrites](https://ca.wordpress.org/plugins/tags/rewrites/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/cdn-rewrites/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  1 valoració de 5 estrelles     ](https://wordpress.org/support/plugin/cdn-rewrites/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/cdn-rewrites/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/cdn-rewrites/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/cdn-rewrites/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/cdn-rewrites/reviews/?filter=1)

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

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/cdn-rewrites/reviews/)

## Col·laboradors

 *   [ Phoenixheart ](https://profiles.wordpress.org/phoenixheart/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/cdn-rewrites/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://www.phoenixheart.net/wp-plugins/cdn-rewrites/)