Title: CDN Issues
Last modified: April 27, 2017

---

# CDN Issues

 *  [daleharrison](https://wordpress.org/support/users/daleharrison/)
 * (@daleharrison)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/cdn-issues-2/)
 * 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 the `wordpress` folder at`
   example.com/content`. This means the plugin can’t replace URLs on my site because
   it is trying to replace `example.com/wordpress` with my CDN URL rather than `
   example.com`. As a test, I changed `get_option('siteurl')` to `get_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 specify `content/uploads` the plugin will silently
   fail to replace URLs.

The topic ‘CDN Issues’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=1095422)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [daleharrison](https://wordpress.org/support/users/daleharrison/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/cdn-issues-2/)
 * Status: not resolved