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
- Log in to your WordPress admin (
/wp-admin) - Go to Settings → General
- Update both WordPress Address (URL) and Site Address (URL) to your real domain (e.g.
https://yourdomain.com) - 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');
这篇文章有帮助吗?