Title: wp-config.php file
Last modified: August 18, 2016

---

# wp-config.php file

 *  [Roody](https://wordpress.org/support/users/roody/)
 * (@roody)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-file/)
 * Hello everyone. I am new to WP as of today. What steps can be taken to ensure
   that the database information on wp-config.php is protected? I noticed there 
   isn’t any directory around it to allow for htaccess to be installed.
 * Thanks for the help. 🙂

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

 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-file/#post-244876)
 * No one can read the info on wp-config.php unless they have access to FTP or access
   to the server admin panel. So you could leave the file alone.
 *  Thread Starter [Roody](https://wordpress.org/support/users/roody/)
 * (@roody)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-file/#post-244879)
 * Thanks for the help. Its appreciated. 🙂
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-file/#post-244886)
 * You can put an .htaccess file in your wp root folder; in fact, if you’re going
   to use rewrite rules of any sort for wp specifically (such as for permalink structure),
   the .htaccess file has to be in the wp root folder….

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

The topic ‘wp-config.php file’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/wp-configphp-file/#post-244886)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
