WordPress Developer Ukraine, Kyiv
Protect wp-config.php and xmlrpc.php via .htaccess

Protect wp-config.php and xmlrpc.php via .htaccess

The wp-config.php file is the single most sensitive file in any WordPress installation. It holds the database hostname, database name, username, and password in plain text alongside the secret authentication keys and salts that sign user session cookies, the database table prefix, and any custom environment constants you have defined. If an attacker reads this…
Force HTTPS in WordPress with a Permanent 301 Redirect in .htaccess

Force HTTPS in WordPress with a Permanent 301 Redirect in .htaccess

Once you install an SSL certificate and configure your WordPress site to use HTTPS, there is one remaining gap: the old HTTP URLs still work. A visitor who bookmarked http://example.com years ago, or a link on an external site pointing to the HTTP version, will arrive on an insecure connection. Search engines may index both…