CDN Issues
-
I’m running into a couple issues trying to enable the CDN functionality of the plugin:
1. The plugin uses
get_option('siteurl')
to determine which URLs to replace, but I’m running WordPress in a subfolder, e.g.example.com/wordpress
. I’ve defined a custom content directory that sits outside thewordpress
folder atexample.com/content
. This means the plugin can’t replace URLs on my site because it is trying to replaceexample.com/wordpress
with my CDN URL rather thanexample.com
. As a test, I changedget_option('siteurl')
toget_option('home')
and the URL replacement started working correctly.2. I can’t seem to add slashes to the “Include directories” field in the plugin’s CDN settings panel. For example, if I set this up as
content
, URL replacement will work correctly, but if I specifycontent/uploads
the plugin will silently fail to replace URLs.
- The topic ‘CDN Issues’ is closed to new replies.