Title: Moving wp-config.php outside web root
Last modified: August 31, 2016

---

# Moving wp-config.php outside web root

 *  Resolved [Emil](https://wordpress.org/support/users/qu1em/)
 * (@qu1em)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/moving-wp-configphp-outside-web-root/)
 * I’d be great if you could define another path for wp-config.php as I often move
   it outside the web root for security reasons. This causes issues with iThemes
   Security since it writes to the wp-config.php file in the web root (which only
   consists of a simple include() to the wp-config.php outside web root).
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  [Gerroald](https://wordpress.org/support/users/gerroald/)
 * (@gerroald)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/moving-wp-configphp-outside-web-root/#post-7079049)
 * Hey Emil,
 * Thanks for the feedback. This is a currently in progress. I’ll attach a link 
   to the report so I can keep you informed.
 * Thanks,
 * Gerroald
 *  Thread Starter [Emil](https://wordpress.org/support/users/qu1em/)
 * (@qu1em)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/moving-wp-configphp-outside-web-root/#post-7079086)
 * Hi Gerroald,
 * Awesome! Thank you for letting me know. What happened to the link though?
 * Best regards,
    Emil
 *  [Gerroald](https://wordpress.org/support/users/gerroald/)
 * (@gerroald)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/moving-wp-configphp-outside-web-root/#post-7079088)
 * Hey Emil,
 * It’s on an internal report. I’ve attached a link to this thread i the report.
 * Thanks!
 * Gerroald

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

The topic ‘Moving wp-config.php outside web root’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gerroald](https://wordpress.org/support/users/gerroald/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/moving-wp-configphp-outside-web-root/#post-7079088)
 * Status: resolved