两天没登博客,今天突然无法进入管理员界面了,通常都是在网站后缀加上/wp-admin进去,今天竟然出现了进不去的情况,错误网址上面显示:
oldpan.me/login__trashed?redirect_to=https%3A%2F%2Foldpan.me%2Fwp-admin%2Findex.php
也就是无法找到该页面,通常来说就是404界面。
遇到这种问题网上的方法有很多,按以下步骤一一来进行:
/usr/local/nginx/conf/wordpress.conf
在上面的地址,添加下面的代码
location / { index index.html index.php; if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } rewrite /wp-admin$ $scheme://$host$uri/ permanent;
1、多尝试换浏览器进行访问,因为有的浏览器可能访问的cookie存在不同; 2、尝试清楚网站cookie后在进行登录尝试。
此问题文章汇总,可能里面会有帮助的内容: 1、https://mu.wordpress.org/forums/topic/11865 2、https://forums.digitalpoint.com/threads/wp-admin-redirecting-to-wp-login-php-unable-to-login-to-dashboard-on-wordpress.2510081/ 3、https://wordpress.stackexchange.com/questions/101295/cant-access-login-screen-wp-login-php-404s 4、https://wordpress.stackexchange.com/questions/113161/wp-admin-url-doesnt-allow-to-login-and-redirects-to-same-page 5、https://www.douban.com/note/274419122/ 6、http://www.280i.com/tech/861.html
此文由腾讯云爬虫爬取,文章来源于Oldpan博客
欢迎关注Oldpan博客公众号,持续酝酿深度学习质量文: