WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Broken image URLs with CDN + Network install (4 posts)

  1. Patrick Daly
    Member
    Posted 3 years ago #

    Using a network installation of WP modifies the media uploads URL structure to be that of http://example.com/files/2009/05/filename.jpg

    Enabling a CDN then adds a subdomain to that URL. The problem with that is that since that URL is virtual WordPress can't find the file in the physical location and so it does what a network installation does and checks the subdomain for an existing site. It can't find it so it sends you to the wp-signup.php page and tells you that you can/cannot create a new site with that subdomain.

    So the issue seems to be that W3TC should modify the htaccess to override WP's attempt at finding cdn.example.com

    Any ideas on how to implement this now?

  2. Green
    Member
    Posted 3 years ago #

    Patrick,

    I was wondering why this was happening. Thank you for explaining the root cause in a way a non-tech dude like me can understand.

    I will try inputting the CDN pull URL instead of the CNAME address, maybe that will help...

  3. Green
    Member
    Posted 3 years ago #

    FYI, I input the temporary URL of my pull zone and the images stayed intact! When I input the CNAME, they broke.

    I have no idea what the deal is, a fix, or anything else that could be related to the .htaccess, W3 total cache, or WP; but this worked.

    Thanks for the insight Patrick, you helped me think a little differently from before and it's appreciated.

  4. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    Patrick are you using domain mapping?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic