Title: WordPress in subfolder
Last modified: June 17, 2019

---

# WordPress in subfolder

 *  Resolved [Atomicsmash](https://wordpress.org/support/users/atomicsmash/)
 * (@atomicsmash)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-3/)
 * Hi there,
 * We are having an issue with sites that use WP in a subfolder. These sites have
   WP contained in a ‘/wp/’ subfolder. The wp-content folder lives at ‘/’.
 * Everything regarding plugins and content works fine.
 * When we have this setup, this plugin is trying to load js from:
 * [https://www.website.com/wp/wp-content/cache/caos-analytics/analytics.js](https://www.website.com/wp/wp-content/cache/caos-analytics/analytics.js)
 * This is the ‘WordPress Address’, but the global site options are set correctly:
 * WordPress Address (URL) = [https://www.website.com/wp/](https://www.website.com/wp/)
   
   Site Address (URL) = [https://www.website.com](https://www.website.com)
 * Also the standard ‘WP_CONTENT_DIR’ is also set correctly in the config.
 * What is the best way to make the plugin load the JS from the “Site Address” rather
   than the “WordPress Address”.
 * Many thanks,
 * Dave.

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-3/#post-11662220)
 * Hi Dave,
 * That’s a neat way to configure your blog!
 * I’ll have to look into this, since I’m a bit surprised that it doesn’t load the
   path to your content dir correctly.
 * I’ll get back to you!
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-3/#post-11724688)
 * [@atomicsmash](https://wordpress.org/support/users/atomicsmash/),
 * Just wanted to let you know that in the latest release I re-factored some code
   that might resolve your issue!
 * Let me know if it works for you.

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

The topic ‘WordPress in subfolder’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

## Tags

 * [sub-folder](https://wordpress.org/support/topic-tag/sub-folder/)

 * 2 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/wordpress-in-subfolder-3/#post-11724688)
 * Status: resolved