Title: Fixing: Dynamic &#8220;wp-content&#8221; folder
Last modified: April 27, 2017

---

# Fixing: Dynamic “wp-content” folder

 *  Resolved [Remo R.](https://wordpress.org/support/users/remo94/)
 * (@remo94)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/fixing-dynamic-wp-content-folder/)
 * **class-litespeed-cache-admin-rules.php**:
    `static $RW_PATTERN_RES = 'wp-content/.*/[
   ^/]*(loader|fonts|\.css|\.js)\.php';`
 * I changed my wp-content folder to “assets” and serving the files via CDN (for
   testing…)
 * When adjusting the htaccess file I noticed that the litespeed-cache does not 
   recognize the “right” media folder.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/fixing-dynamic-wp-content-folder/#post-9073954)
 * Thanks for letting us know! This will be resolved for the next release.
 *  Thread Starter [Remo R.](https://wordpress.org/support/users/remo94/)
 * (@remo94)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/fixing-dynamic-wp-content-folder/#post-9077454)
 * You planning to use “WP_CONTENT_DIR” plugin as default?
    Not only in the class-
   litespeed-cache-admin-rules.php and htaccess file?
 *  Plugin Author [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * (@litespeedtech)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/fixing-dynamic-wp-content-folder/#post-9078190)
 * Likely not exactly. WordPress suggests that WP_CONTENT_DIR should not be used
   by plugins, and we will honor that the best we can.
 * As you can see in the class-litespeed-cache.php constructor, we got the content
   dir via get_theme_root() (and dirnaming that). We will likely just re-use this.
   Since the rule in question relates to themes anyway, this should be a fitting
   solution.
 * Let me know what you think! We’re always open to recommendations.
 * Cheers,
    Kevin

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fixing: Dynamic “wp-content” folder’ is closed to new replies.

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

 * 3 replies
 * 2 participants
 * Last reply from: [LiteSpeed Technologies](https://wordpress.org/support/users/litespeedtech/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/fixing-dynamic-wp-content-folder/#post-9078190)
 * Status: resolved