Title: Hardcoded file paths
Last modified: August 20, 2016

---

# Hardcoded file paths

 *  [Misophoniq](https://wordpress.org/support/users/rubencc/)
 * (@rubencc)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-file-paths/)
 * This is yet another plugin that is failing because it has filepaths hardcoded
   in the PHP code rather then correctly reading the paths from the wp-config file.
   It’s getting quite annoying by now since I’ve been trying to find a decent plugin
   for about an hour now!
 * I have no “wp-content” folder, but just a “content” folder instead.
    I have no“
   plugins” folder within a “wp-content” or “content” folder, but just in the root.
 * Why do developers insist on hardcoding these paths while these are all options
   that can be set in the wp-config file.

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

 *  [nsathees](https://wordpress.org/support/users/nsathees/)
 * (@nsathees)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-file-paths/#post-2224230)
 * how do you do that? I need to know!
 *  Thread Starter [Misophoniq](https://wordpress.org/support/users/rubencc/)
 * (@rubencc)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-file-paths/#post-2224247)
 * define( ‘WP_CONTENT_DIR’, $_SERVER[‘DOCUMENT_ROOT’] . ‘/content’);
    define( ‘
   WP_CONTENT_URL’, ‘[http://yoursite.url/content&#8217](http://yoursite.url/content&#8217););
   define( ‘WP_PLUGIN_DIR’, $_SERVER[‘DOCUMENT_ROOT’] . ‘/plugins’); define( ‘WP_PLUGIN_URL’,‘
   [http://yoursite.url/plugins&#8217](http://yoursite.url/plugins&#8217);); define(‘
   PLUGINDIR’, ‘/plugins’); // support for older plugins

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

The topic ‘Hardcoded file paths’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/downloads-manager.svg)
 * [Downloads Manager](https://wordpress.org/plugins/downloads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/downloads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/downloads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/downloads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/downloads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/downloads-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Misophoniq](https://wordpress.org/support/users/rubencc/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/hardcoded-file-paths/#post-2224247)
 * Status: not resolved