wp-config.php dosyası cok onemli olduğu icin sadece şifrelemeye guvenemeyiz. Bununla birlikte wp-config.php dosyasının bulunduğu dizini veya dosyanın direk ismini değiştirmeliyiz. Bunu yapmak icin de sitemizin ana dizinindeki wp-load.php dosyasını acmalı ve wp-config.php yazan yerleri dilediğimiz şekilde değişirmeliyiz. Orneğin wp-content klasorune taşımak icin wp-load.php dosyasındaki wp-config.php yazan yerleri wp-content/wp-config.php şeklinde değiştirmeliyiz. İlgili satırların değişmiş hali şu şekilde olacaktır.
PHP:
if ( file_exists( ABSPATH . 'wp-content/wp-config.php') ) elseif ( file_exists( dirname(ABSPATH) . '/wp-content/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) { /** The config file resides one level above ABSPATH but is not part of another install*/ require_once( dirname(ABSPATH) . '/wp-content/wp-config.php' );

Kaynak