How to fix 401 HTTP response error for wp-cron in WordPress?

How to fix 401 HTTP response error for wp-cron in WordPress?

Easy fix, add this code to .htaccess in your root folder:

# Exclude the WP CRON and other scripts from authentication
<FilesMatch “(wp-cron.php|another-script.php)$”>
Satisfy Any
Order allow,deny
Allow from all
Deny from none

Twitter
Facebook
LinkedIn
Telegram
WhatsApp
Email