Security configs and deployment tips for a secure WordPress setup.
All codes should be inserted right at the beginning of the files.
- Add code from .htaccess to your
.htaccessfile. - Add code from .htaccess to your
wp-content/themes/.htaccessfile (if it doesn't exist, create it). - Add code from wp-config.php to your
wp-config.phpfile. - Add code from robots.txt to your
robots.txtfile.
- Enable Two Factor Authentication
- Update WordPress and plugins/themes
- Verify backups are working
- Verify Site Health /wp-admin/site-health.php
- Setup WordPress Cron Jobs (One for Each Site in a Multisite)
- Use a creative admin user name