{"id":8129,"date":"2025-10-06T12:25:00","date_gmt":"2025-10-06T10:25:00","guid":{"rendered":"https:\/\/chiperoni.ch\/wordpress\/?p=8129"},"modified":"2025-10-20T10:20:34","modified_gmt":"2025-10-20T08:20:34","slug":"changing-domains-for-a-wordpress-site","status":"publish","type":"post","link":"https:\/\/chiperoni.ch\/wordpress\/2025\/10\/changing-domains-for-a-wordpress-site\/","title":{"rendered":"Changing domains for a WordPress site"},"content":{"rendered":"\n<p>If you are changing the domain of your WordPress site, keep in mind you also need to change domain names within your WordPress instance. <a href=\"https:\/\/www.cyon.ch\/support\/a\/domain-einer-wordpress-website-andern\">Thanks, Cyon.ch. <\/a><br \/><br \/>Some notes as a reminder for myself:<br \/><br \/>Change WordPress site URL settings<\/p>\n\n\n\n<p>In the WordPress admin, go to <strong>Settings > General<\/strong>.<br \/>Edit the two fields:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>WordPress Address (URL)<\/strong><\/li>\n\n\n\n<li><strong>Site Address (URL)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Set both to your new domain (e.g. <code>https:\/\/newdomain.com<\/code>)<\/p>\n\n\n\n<p>Save changes.<\/p>\n\n\n\n<p><strong>If you lose access<\/strong> or the site breaks, you can override via <code>wp-config.php<\/code> or directly in the database (see next steps).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Update references in the database<\/h3>\n\n\n\n<p>Many internal links, images, etc. still point to the old domain. You should replace those. Options:<\/p>\n\n\n\n<p>Use a plugin like <strong>Better Search Replace<\/strong> to search old domain > new domain.<\/p>\n<div class=\"syndication-links\"><\/div>","protected":false},"excerpt":{"rendered":"<p>If you are changing the domain of your WordPress site, keep in mind you also need to change domain names within your WordPress instance. Thanks, Cyon.ch. Some notes as a reminder for myself: Change WordPress site URL settings In the WordPress admin, go to Settings > General.Edit the two fields: Set both to your new [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8129","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1LJxC-277","_links":{"self":[{"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/posts\/8129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/comments?post=8129"}],"version-history":[{"count":3,"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/posts\/8129\/revisions"}],"predecessor-version":[{"id":8135,"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/posts\/8129\/revisions\/8135"}],"wp:attachment":[{"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/media?parent=8129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/categories?post=8129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chiperoni.ch\/wordpress\/wp-json\/wp\/v2\/tags?post=8129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}