Forums

WP Super Cache
Static file URL rewriting.. (2 posts)

  1. erick_paper
    Member
    Posted 4 months ago #

    Hi. I want to use the CDN feature. To do this currently this superb plugin allows me to rename files like this:

    FROM: http://mysite.com/cms/wp-includes/js/prototype.js
    TO: http://cdn.mysite.com/cms/wp-includes/js/prototype.js

    But I want to change the *manner* in which this rewriting happens:

    FROM: http://mysite.com/cms/wp-includes/js/prototype.js
    TO: http://cdn.mysite.com/inc/js/prototype.js

    How do I do this?

    Thanks!

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Posted 4 months ago #

    You can't do it easily. I'd use an output buffer to change links to static files and then make sure that the files are pushed to my CDN. You'd probably have to symlink the "inc" directory on your local server to cms/wp-includes/ but then you're stuck for other files like uploaded images..

Reply

You must log in to post.

About this Plugin

About this Topic