访问域过期的多站点的 WP 管理员 [英] Accessing WP admin of a multisite with expired domain

查看:40
本文介绍了访问域过期的多站点的 WP 管理员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个多站点网络,并且有子站点,不幸的是主域已过期,我无法访问我的 WP 管理员.我不担心主站点,但我需要有子站点.

I got a multisite network, and got subsites on it, unfortunately the main domain has expired, and I cannot access my WP admin. I don't worry about the main site but I need to have the subsite.

我可以使用 IP 访问主站点,但不能使用其 WP 管理员.我尝试遵循 this 但它没有帮助.我看到了一种通过访问数据库的方法 (这种方法) 但我无法访问托管在 Digital Ocean 中的数据库,没有控制面板就很难.

I am able to access the main site using the IP but not its WP admin. I tried following this but it didn't help. I saw a way via accessing database (this method) but I couldn't access database as its hosted in Digital Ocean, it's pretty hard without a control panel.

  1. 想要一种访问主要站点的方法 WP admin
  2. 通过 URL 访问我的子网站(它有一个被屏蔽的单独域)

推荐答案

如果您的域已过期,普通 DNS 将无法工作.这意味着 Web 服务器上的基于域的托管将不再运行.

If your domain has expired, ordinary DNS will not work. This means that domain-based hosting on the web server will no longer operate as well.

但是,您可以轻松地欺骗本地计算机,使其认为该域仍然存在.这适用于 Linux 和 OS X.你需要知道你的网络服务器的 IP 地址 - 如果你没有这个,你会在你从你的网络主机收到的欢迎电子邮件中找到它,或者也许登录您的客户控制面板.

However, you can easily trick your local machine into thinking the domain still exists. This will work on Linux and OS X. You'll need to know the IP address of your web server - if you do not have this, you'll have this in the welcome emails you've received from your web host, or perhaps by logging onto your customer control panel.

编辑您的 /etc/hosts/ 文件.在末尾的空白链接中,添加:

Edit your /etc/hosts/ file. In a blank link at the end, add this:

yourdomain.tld    1.2.3.4

其中 1.2.3.4 是您的 IPv4 地址.两者之间的间隙可以是任意数量的空格或制表符.

where 1.2.3.4 is your IPv4 address. The gap between the two can be any number of spaces or tabs.

保存此文件后,您应该可以在控制台或终端实用程序中对其进行 ping 操作:

Once this file is saved, you should be able to ping it thus, in a console or terminal utility:

ping yourdomain.tld

它会显示您分配给它的 IP 地址.

and it will show you what IP address you have assigned it to.

然后就可以正常访问了.但是请记住,只有您拥有 DNS 信息,因此它不会在任何其他机器上运行.但是,它允许您访问 WordPress 控制面板.

You can then access it normally. Bear in mind, though, that only you have the DNS information, so it will not work on any other machine. It will however allow you to access your WordPress control panel.

这篇关于访问域过期的多站点的 WP 管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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