WordPress阅读约 4 分钟

Connecting your WordPress site to a custom domain

Change the WordPress URL to your custom domain and fix common redirect issues.

本文暂无您所用语言的版本,因此以英文显示。

Connecting WordPress to a custom domain

If you installed WordPress on a temporary URL and want to switch to your real domain, follow these steps.

1. Make sure DNS is pointing to your server

Before changing the WordPress URL, ensure your domain's nameservers or A record point to your hosting server. See the Nameservers guide.

2. Update WordPress URL settings

  1. Log in to your WordPress admin (/wp-admin)
  2. Go to Settings → General
  3. Update both WordPress Address (URL) and Site Address (URL) to your real domain (e.g. https://yourdomain.com)
  4. Click Save Changes

3. Update SSL certificate

In Plesk, go to your domain → SSL/TLS Certificates → Issue a Let's Encrypt certificate for your real domain.

4. Clear cache

If you use a caching plugin (WP Super Cache, W3 Total Cache), clear all caches after changing the URL.

Locked out? If WordPress redirects you to the wrong URL, edit wp-config.php via Plesk File Manager and add:
define('WP_HOME', 'https://yourdomain.com');
define('WP_SITEURL', 'https://yourdomain.com');

这篇文章有帮助吗?

返回帮助中心

仍然没有解决?

在客户中心提交工单,我们的团队会回复您。我们以 17 种语言处理工单。

电子邮件
[email protected]
电话和 WhatsApp
+383 45 400 405