简体   繁体   English

Wordpress 将 wp-admin 重定向到 wp-admin/wp-login.php

[英]Wordpress Redirect wp-admin to wp-admin/wp-login.php

Im using Local by Flywheel for test a WP site, I import a DB and change the URL with the Local URL.我使用 Flywheel 本地来测试 WP 站点,我导入了一个数据库并使用本地 URL 更改了 URL。

But, when im try to my admin, the site redirect..但是,当我尝试我的管理员时,网站重定向..

http://example.com/wp-admin/example.com/wp-login.php?redirect_to=http%3A%2F%2Fexample.local%2Fwp-admin%2F&reauth=1

I dont know why this happen, ill try everything, for example, add the URL to wp-config.php我不知道为什么会发生这种情况,我尝试了所有方法,例如,将 URL 添加到 wp-config.php

define('WP_HOME','example.local');定义('WP_HOME','example.local'); define('WP_SITEURL','example.local');定义('WP_SITEURL','example.local');

also clean my cookies, try another browser, but still having that problem.也清理我的 cookie,尝试另一个浏览器,但仍然有这个问题。

Any idea how tho fixed?知道如何修复吗?

As i see - it tries to find wp-login.php under /wp-admin/example.com/, not /wp-admin/.正如我所见 - 它试图在 /wp-admin/example.com/ 下找到 wp-login.php,而不是 /wp-admin/。 example.com/wp-admin/ example.com /wp-login.php example.com/wp-admin/ example.com /wp-login.php

Check .htaccess file.检查 .htaccess 文件。 Probably some routing issues.可能是路由问题。 Maybe regenerate it.也许重生吧。

Check permalink inside the wp admin cms.检查 wp admin cms 内的永久链接。 Change permalink to 'post name' to change 'plain' and then save.将固定链接更改为“帖子名称”以更改“普通”,然后保存。 Now try (or) check .htaccess file us well.现在尝试(或)检查 .htaccess 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM