WordPress 登录页面重定向到 "page not found"

WordPress login page redirecting to "page not found"

Hi, I am currently working on a Wordpress site and suddenly I got this error message " page not found" , I tried to login into pw-admin to check the permalinks values but I couldnot login into admin or front end .

Could you please help me ?

可能是您不小心错误地为您的安装设置了 'siteurl' and/or 'home' 值。如果是这样,您可以通过数据库重置它们。如果您根据默认命名您的 table,那么您应该查看 wp_options table。在 option_name 列中搜索 siteurlhome,并将它们替换为网站的正确值。

在大多数情况下,它们都应该是 https://example.com/

编辑 由于这个答案已被接受为正确的,我将添加我认为实际上帮助提问者的评论到答案中。

系统生成的每个 link 都会将 /ar/home-2-2/ 添加到 url。你有一些奇怪的重定向。它可能与您使用的任何插件有关,以获取网站的多个语言版本。尝试禁用该插件(如果您有权访问文件系统,您可以重命名插件的文件夹)并查看 returns 是否正常。

如果您无法访问前端并且backend.Please请在数据库url中检查您的站点