{"id":16576,"date":"2012-01-28T01:50:40","date_gmt":"2012-01-28T01:50:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wordpress-cdn-rewrite\/"},"modified":"2012-05-24T00:14:50","modified_gmt":"2012-05-24T00:14:50","slug":"wordpress-cdn-rewrite","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wordpress-cdn-rewrite\/","author":8849417,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"1.1","tested":"3.3.2","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"CDN Rewrite","header_author":"Blue Worm Labs","header_description":"","assets_banners_color":"","last_updated":"2012-05-24 00:14:50","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bluewormlabs.com\/projects.php","header_plugin_uri":"http:\/\/github.com\/bluewormlabs","header_author_uri":"http:\/\/bluewormlabs.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":4164,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<ul>\n<li>This is the first version.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566898","resolution":"1","location":"plugin"}},"screenshots":{"1":"Configuration"}},"plugin_section":[],"plugin_tags":[3863],"plugin_category":[59],"plugin_contributors":[93188],"plugin_business_model":[],"class_list":["post-16576","plugin","type-plugin","status-closed","hentry","plugin_tags-cdn","plugin_category-utilities-and-tools","plugin_contributors-bluewormlabs","plugin_committers-bluewormlabs"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wordpress-cdn-rewrite.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wordpress-cdn-rewrite\/trunk\/screenshot-1.png?rev=1566898","caption":"Configuration"}],"raw_content":"<!--section=description-->\n<p>For performance reasons, some websites host static content (images, CSS files, Javascript files, etc.) on something other than the main webserver. It could be as simple as separate, higher performance software running on the same server or a full-fledged CDN serving the files from multiple servers around the world.<\/p>\n\n<p>While many plugins like this already exist for WordPress, we couldn't find any that matched our needs. Furthermore, most required running a caching plugin in addition to the CDN plugin. In many cases, that's fine, but we don't always want to have caching.<\/p>\n\n<p>The following are rewritten if a rule matches:<\/p>\n\n<ol>\n<li>Values in <code>href<\/code> attributes of A tags<\/li>\n<li>Values in <code>href<\/code> attributes of LINK tags<\/li>\n<li>Values in <code>src<\/code> attributes of IMG tags<\/li>\n<li>Values in <code>src<\/code> attributes of SCRIPT tags<\/li>\n<\/ol>\n\n<h3>Configuration<\/h3>\n\n<p>The plugin creates a new section in the Settings area of the \nWordPress admin site titled 'WP CDN Rewrite'. All configuration is \nperformed there.<\/p>\n\n<p>First, add domains to the whitelist. URLs on these domains will be \nrewritten if a rule is found for the given URL.<\/p>\n\n<p>Second, add rules. Two types of rules can be specified:<\/p>\n\n<ol>\n<li><p>Host rewrite<\/p>\n\n<p>These rules only change the host on a given URL. For cases along \nthe lines of the CloudFiles use case that we wrote this for, simply \nspecify the new host and the extension to match on (e.g., <code>jpg<\/code>).<\/p><\/li>\n<li><p>Full rewrite<\/p>\n\n<p>These rewrite everything except the filename in the URL. Specify \nwhatever should prefix the filename (e.g., <code>http:\/\/images.example.com\/<\/code>).<\/p><\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Extract wpcdnrewrite into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>N\/A<\/dt>\n<dd><p>No questions yet.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"WP CDN Rewrite is a simple plugin that rewrites URLs, generally to static assets, automatically based on a set of rules.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16576"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bluewormlabs"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16576"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16576"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16576"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16576"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16576"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}