WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] using local subdomain and ftp for 'CDN' (7 posts)

  1. efikim
    Member
    Posted 3 years ago #

    I've tried setting up a subdomain as an FTP CDN, and managed to get it to work, but now I'm wondering if I need to copy some of the htaccess code from the blog subdomain to the static subdomain

    My blog is in one subdomain - blog.x.com
    I've the static data in another subdomain - static.x.com and set up an ftp user account for it
    It works, and W3C can transfer files without any problems (other than it has to use a passive FTP connection)
    The .htaccess file in the static subdomain contains the command 'rewrite engine off' (this is needed to avoid one of the rules in the .htaccess for the main site), but thats all at present

    It works, but I wonder if some of the stuff added to .htaccess for the blog would also be desirable for the static subdomain. (I guess that the usual setup would have the static subdomain as a subdirectory of the blog, and so inherit the .htaccess settings; this isn't the case here)

    On the positive side, the tool to move everything into the media library and update all the posts is great (especially for cleaning up all the hotlinked files!) - that alone will speed up another older blog I have.

  2. efikim
    Member
    Posted 3 years ago #

    I've transferred the "W3TC Browser Cache" section across as it looked like it should be used and it makes a significant difference.

  3. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    If nothing is in your failed transfer queue. Can you submit a bug submission form from the support tab of the plugin?

  4. efikim
    Member
    Posted 3 years ago #

    I think its working properly now that I've updated the .htaccess file.
    (I didn't notice an option to generate the .htaccess file for the cdn directory automatically, but may have missed it, or my directory configuration may not be what you'd envisaged.)
    (what was needed was the file type, expiry time, and pragma/cache control stuff for the static files)

  5. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    There's no option to generate it, it's automatically uploaded to your servers root directory in self-hosted mode. Again if it didn't work like that, please submit a bug submission form.

  6. efikim
    Member
    Posted 3 years ago #

    Thanks frederick - submission form sent

  7. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Ok.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic