Title: Moving config.php
Last modified: August 19, 2016

---

# Moving config.php

 *  [Corse](https://wordpress.org/support/users/corse/)
 * (@corse)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/moving-configphp/)
 * Hello,
 * According the codex it’s wise to move config.php one folder above.
 * So it should be moved from dir/root/ to dir/ ?
 * Is that more safe and don’t i need a .htacces file there(dir/)?

Viewing 1 replies (of 1 total)

 *  [shane-g](https://wordpress.org/support/users/shane-g/)
 * (@shane-g)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/moving-configphp/#post-1076905)
 * Hi,
 * I suggest you to secure your wp-config.php file rather than moving it to another
   folder..Please read this article for the same:
 * [http://danemorgan.com/blog/wordpress/wordpress-security-secure-your-wordpress-wp-config-info](http://danemorgan.com/blog/wordpress/wordpress-security-secure-your-wordpress-wp-config-info)
 * Thanks,
 * Shane G.

Viewing 1 replies (of 1 total)

The topic ‘Moving config.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [shane-g](https://wordpress.org/support/users/shane-g/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/moving-configphp/#post-1076905)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
