404 errors are a cause of concern for many WordPress users. Particularly those who have just moved from WordPress.com 到自托管 WordPress.org, or 从一个域到另一个域. These errors not only affect user experience on your site, they can also affect your site’s performance on search engines. In this article, we will show you how to get email alerts for 404 errors in WordPress.
404错误是许多WordPress用户关注的原因。 特别是那些刚从WordPress.com迁移到自托管 WordPress.org ,或用户从一个域迁移到另一个域 。 这些错误不仅影响您网站上的用户体验,还可能影响您网站在搜索引擎上的性能。 在本文中,我们将向您展示如何获取WordPress中404错误的电子邮件警报。
First thing you need to do is install and activate the 404 t0 301 plugin. Upon activation, you need to go to 404 至 301 » 404 设置 to configure the plugin.
您需要做的第一件事是安装并激活404 t0 301插件。 激活后,您需要转到404 至 301 » 404 设置来配置插件。

选择 301 重定向作为您的重定向类型。在重定向至字段中选择页面或自定义 URL。您还可以选择不将用户重定向到任何页面。
选择“301 重定向”作为您的重定向类型。在“重定向到”字段中选择页面或自定义 URL。您还可以选择不将用户重定向到任何页面。
您可以启用 404 错误的日志记录,这样您就可以根据需要手动查看日志。您需要在下面选中电子邮件通知复选框并提供您的电子邮件地址。不要忘记单击“保存更改”按钮来存储您的设置。
您可以通过这种方式启用 404 错误的日志记录,并且可以根据需要手动查看日志。在此之下,您需要选中电子邮件通知复选框并提供您的电子邮件地址。不要忘记单击“保存更改”按钮来存储您的设置。
要测试该插件,请访问您网站上任何不存在的页面(例如 yoursite.com/lala404),您将在收件箱中收到有关 404 错误的电子邮件通知。
要测试该插件,请访问您网站上任何不存在的页面(例如 yoursite.com/lala404),您将在收件箱中收到有关 404 错误的电子邮件通知。
404电子邮件警报故障排除 (Troubleshooting 404 Email Alerts)
Most common issue that you would come across when using this plugin is that it may not always deliver emails to your Gmail account. The reason for that is because this plugin uses the same email address in both 到 and 从 fields. Since the email is not originating from Gmail servers, Gmail considers this email spoofing and will automatically discard the message.
使用此插件时,您会遇到的最常见问题是,它不一定总是将电子邮件发送到您的Gmail帐户。 这样做的原因是因为此插件在“ 接受者”和“ 发件人”字段中使用相同的电子邮件地址。 由于电子邮件不是源自Gmail服务器,因此Gmail会考虑此电子邮件欺骗,并将自动丢弃该邮件。
To solve this issue you can use Gmail SMTP 服务器 to send WordPress emails.
要解决此问题,您可以使用Gmail SMTP 服务器发送WordPress电子邮件。
Another solution is to create an email account with your own domain name like wordpress@example.com
. Most WordPress 托管 providers allow you to create unlimited email accounts with your own domain name. Once you have created the email account, you need to find out its SMTP settings. Contact your web host to find out these settings. 蓝主机 users can find their email settings 这里.
另一个解决方案是使用您自己的域名(如wordpress@example.com
创建一个电子邮件帐户。 大多数WordPress 托管服务提供商允许您使用自己的域名创建无限的电子邮件帐户。 创建电子邮件帐户后,需要找出其SMTP设置。 请与您的虚拟主机联系,以了解这些设置。 蓝主机用户可以这里找到其电子邮件设置。
After that you need to install and activate the WP 邮件 SMTP plugin and enter your SMTP settings.
之后,您需要安装并激活WP 邮件 SMTP插件,然后输入SMTP设置。

我们希望本文能帮助您在 WordPress 网站上设置 404 错误的电子邮件警报。
我们希望本文能帮助您在 WordPress 网站上设置 404 错误的电子邮件警报。
If you liked this article, then subscribe to our YouTube 频道 for more WordPress video tutorials. You can also join us on 谷歌+ and 推特.
如果您喜欢本文,请订阅我们的YouTube 频道,以获取更多WordPress视频教程。 您也可以通过谷歌+和推特加入我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-get-email-alerts-for-404-errors-in-wordpress/