WordPress的WP管理员将我重定向到另一个域 [英] Wordpress wp-admin redirects me to a different domain

查看:68
本文介绍了WordPress的WP管理员将我重定向到另一个域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我去mysite.net/wp-admin. 输入用户名并输入密码后,它会将我重定向到地址为

I go to mysite.net/wp-admin. Once I type in my username and pass word it redirects me to a blank page with address of

mysite.co.uk/wp-login.php?redirect_to=http%3A%2F%2Fmysite.net%2Fwp-admin%2F&reauth=1

我同时拥有mysite.co.uk和mysite.net这两个域. 实际上,mysite.co.uk重定向到mysite.net

I own both domains mysite.co.uk and mysite.net. in fact mysite.co.uk redirects to mysite.net

推荐答案

转到数据库,找到名为wp-option的表,然后将wordpress地址和站点地址更改为mysite.net.

Go to your database, and find the table called wp-option, then change the wordpress address and site address to mysite.net.

您还可以将以下代码行添加到wp-config.php文件中

You can also add the following lines of code to the wp-config.php-file

define('WP_SITEURL','http://your-site-url.com');
define('WP_HOME','http://your-site-url.com');

这篇关于WordPress的WP管理员将我重定向到另一个域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆