WordPress站点通过在线Cron Job服务连接时出现HTTP 404 Not Found错误
Let's walk through the most common fixes for that "HTTP/1.1 404 Not Found" error you're seeing when trying to run your Cron job:
Verify the file actually exists
Log into your hosting account's file manager or use FTP to navigate towp-content/plugins/WPFanMachineBasic/. Double-check thatauto.phpis present in that folder. Pay attention to capitalization too—Linux-based servers are case-sensitive, so if the plugin folder is namedwpfanmachinebasicinstead ofWPFanMachineBasic, that'll instantly cause a 404.Test the URL directly
Try accessinghttp://www.moongot.com/wp-content/plugins/WPFanMachineBasic/auto.phpin your browser, or run this command in your terminal to check the raw response:curl -I http://www.moongot.com/wp-content/plugins/WPFanMachineBasic/auto.phpIf you get a 404 here too, the issue isn't with the Cron service—it's definitely a problem with the URL or your server setup.
Check file and folder permissions
Make sure theWPFanMachineBasicfolder has permissions set to755, and theauto.phpfile has permissions set to644. Incorrect permissions can sometimes trick the server into returning a 404 instead of a clear "permission denied" error.Rule out security or .htaccess restrictions
Some security plugins (like Wordfence or iThemes Security) or custom.htaccessrules might block direct access to PHP files in plugin folders. Temporarily disable any security plugins and test the URL again, or scan your.htaccessfile for lines that restrict access to/wp-content/plugins/files.Confirm the plugin is active and up-to-date
If the plugin isn't activated, even if the file exists, some plugins restrict access to their Cron endpoints. Also, check if the plugin has an update—sometimes updates change the path to the Cron file, so your old URL might no longer be valid.
内容的提问来源于stack exchange,提问作者moongot

