SumTips
SumTips

Make WordPress Remember Your FTP Details

If you are tired of WordPress asking for your FTP details every time you run an upgrade. This little hack will make it remember those details once and for all.


Open your wp-config.php file and add the below lines in it filled with your details:

define('FTP_HOST', 'ftp.yoursite.com');
define('FTP_USER', 'FTP_username');
define('FTP_PASS', 'FTP_password');
define('FTP_SSL', true); // If you use a SSL connection set this to true.

That’s it!

Now to protect this file from public access, add these lines in your .htaccess file:

<files wp-config.php>
order allow,deny
deny from all
</files>