Title: Exclude specific directory
Last modified: September 1, 2016

---

# Exclude specific directory

 *  Resolved [ahnabil](https://wordpress.org/support/users/ahnabil/)
 * (@ahnabil)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-directory/)
 * Hello, anyway to exclude a specific directory??
 * [https://wordpress.org/plugins/cdn-enabler/](https://wordpress.org/plugins/cdn-enabler/)

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

 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-directory/#post-7564502)
 * You can exclude a specific directory by using the “Exclusions” option in the 
   CDN Enabler settings page. Directories can be defined such as: wp-content/path/
   to/your/directory.
 * Also, if you are excluding multiple directories remember to separate each with
   a comma.
 *  Thread Starter [ahnabil](https://wordpress.org/support/users/ahnabil/)
 * (@ahnabil)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-directory/#post-7564560)
 * hello, thanks for the fast reply
 * i’ve Simple Custom CSS plugins installed
 * on the page source the link to the custom css is like that
 * [https://website.com/?sccss=1&ver=4.5.3](https://website.com/?sccss=1&ver=4.5.3)
 * when cdn is enabled the link becomes
 * [https://cdn.website.com/?sccss=1&ver=4.5.3](https://cdn.website.com/?sccss=1&ver=4.5.3)
 * the cdn link has no style, the original has the css styles
 * how can i exclude this plugins/url from cdn?
 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/exclude-specific-directory/#post-7564590)
 * The Custom CSS file should still be deliverable via the CDN. As you can see, 
   I set up a test file here using the CDN URL [https://cdn.codyarsenault.com/?sccss=1&ver=4.5.3](https://cdn.codyarsenault.com/?sccss=1&ver=4.5.3)
 * Remember that if you made any changes to the Custom CSS file you need to **purge
   that URL** from your CDN zone.
 * Additionally, if you would like to exclude a specific file as you mentioned, 
   you can move that file into a folder and then exclude it from within your CDN
   Enabler settings.
 *  [dblinks](https://wordpress.org/support/users/dblinks/)
 * (@dblinks)
 * [9 years ago](https://wordpress.org/support/topic/exclude-specific-directory/#post-9075894)
 * Can you do wild cards?
 * i.e. /wp-content/themes/mytheme/includes/lib/assets/fonts/icomoon/*,
 * or can I just put .php, .woff, .ttf ?
 *  (and do you use or not a leading slash?) Your example doesn’t so thought I’d
   ask.
 * thanks!
    stu

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

The topic ‘Exclude specific directory’ is closed to new replies.

 * ![](https://ps.w.org/cdn-enabler/assets/icon-256x256.png?rev=2472538)
 * [CDN Enabler](https://wordpress.org/plugins/cdn-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-enabler/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [dblinks](https://wordpress.org/support/users/dblinks/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/exclude-specific-directory/#post-9075894)
 * Status: resolved