Static File Rewrite for CDN

0

I would be interested in seeing a plugin that would rewrite the static files to a different URL for a origin pull CDN for all the MU sites. I have seen a previous post and worked on getting the plugin from the following post working but seems that even using ‘template_directory’ it did not rewrite all the contact properly.

http://www.ringofblogs.com/2008/04/12/off-loading-wpmu-theme-files-to-amazon-s3/

I would like to simply rewrite all static files to a single hostname for all the sites.

  • wpcdn
    • Syntax Hero

    There are various rewrite plugins that should be able to handle this, as long as you account for the fact that in multisite, theme files and sub-site files are not pulled from the same place.

    However, we have seen issues with at least one rewrite plugin and the domain mapping plugin offered here. Are you using that?

    Can you clarify what you’re trying to achieve and how it would be different from a typical CDN scenario? I’m not sure if you’re saying that you simply want to implement origin pull CDN across a multisite installation, or if you’re trying to do something differently than a typical multisite CDN implementation would have.

    Mark

    WPCDN

  • wpcdn
    • Syntax Hero

    Mason,

    Thanks!!! :slight_smile:

    bhaun,

    That’s not hard to do at all. It’s pretty standard stuff. I’m in the middle of a bunch of stuff tonight, but I can try to explain more in the next day or so.

    But, to summarize, it’s standard rewrites for the most part. You could probably achieve it with the OSSDL CDN Off-Linker plugin, or Redirection, or CDN Redirects. (I’m reciting plugin names from memory so please forgive me if they aren’t exact matches.)

    For example, OSSDL CDN Off-Linker should work, with the caveat that you need to add the multisite “files” directory to the couple of directories that are there by default.

    Will check back in tomorrow and see if I can provide any more info.

    Mark