简体   繁体   中英

wordpress wp-admin redirect

I am working on a site using localhost. Some where I have messed up a setting and when I try to open my wp-admin site it is putting localhost at the beginning of my path names.

ex. when I try to go to localhost/wp-admin it redirects me to http://localhost/wp-admin/localhost/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwp-admin%2F&reauth=1

I have tried renaming .htaccess file, updating siteurl & home tables in phpmyadmin back to localhost.

Well I had the same problem yesterday just after installing Wordpress. Check in your host cPanel if varnish caching has been enabled. If so, go ahead and disable it. Wait for 30 minutes and then try logging in.

It look like in DB siteurl & home tables site URL added 2 times by mistake. review that table again.

对我来说,我在 /etc/hosts 和我的数据库 siteurl 和 home 表 local.se 中设置了 127.0.0.1 local.se 它应该是http://local.se

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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