{"id":20513,"date":"2026-11-03T14:49:04","date_gmt":"2026-11-03T13:49:04","guid":{"rendered":"https:\/\/surver.nl\/kennisbank\/wordpress-url-veranderen-site-adres-aanpassen\/"},"modified":"2026-11-03T14:49:04","modified_gmt":"2026-11-03T13:49:04","slug":"change-wordpress-url-update-site-address","status":"publish","type":"kennisbank","link":"https:\/\/surver.nl\/en\/kennisbank\/wordpress-url-veranderen-site-adres-aanpassen\/","title":{"rendered":"Changing the WordPress URL: Customizing the Site Address"},"content":{"rendered":"<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"642\" src=\"https:\/\/surver.nl\/wp-content\/uploads\/2026\/11\/kennisbank-wordpress-url-veranderen-site-adres-aanpassen-v2.jpg\" alt=\"Changing the WordPress URL: Customizing the Site Address\" class=\"wp-image-20512\" srcset=\"https:\/\/surver.nl\/wp-content\/uploads\/2026\/11\/kennisbank-wordpress-url-veranderen-site-adres-aanpassen-v2.jpg 1024w, https:\/\/surver.nl\/wp-content\/uploads\/2026\/11\/kennisbank-wordpress-url-veranderen-site-adres-aanpassen-v2-300x188.jpg 300w, https:\/\/surver.nl\/wp-content\/uploads\/2026\/11\/kennisbank-wordpress-url-veranderen-site-adres-aanpassen-v2-768x482.jpg 768w, https:\/\/surver.nl\/wp-content\/uploads\/2026\/11\/kennisbank-wordpress-url-veranderen-site-adres-aanpassen-v2-18x12.jpg 18w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Your company has a new name, you're switching from a temporary domain to the actual domain, or your site needs to switch from http to https. You can change your WordPress URL by updating the WordPress Address and Site Address under <strong>Settings &gt; General<\/strong> Update it, then replace the old URL in the database with the new one, and set up a 301 redirect from the old address to the new one. It\u2019s a good task to do yourself, but it\u2019s also one of the few jobs where you can really lock yourself out. I\u2019ll share the order I follow myself, along with a last-resort solution in case things do go wrong.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"het-wordpress-adres-en-het-site-adres\">The WordPress Address and the Site Address<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The WordPress Address is where the WordPress files are located; the Site Address is the address visitors use to access your site. For almost every site, they are exactly the same, and that\u2019s how you should keep it. They differ only if WordPress is located in a subfolder while your site needs to run on the main domain. Internally, these two settings are called <code>siteurl<\/code> and <code>home<\/code>, and they're listed in the table <code>wp_options<\/code> from your database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What many people don't realize is that those two fields are only part of the story. WordPress also stores your address within the content itself. Every internal link you\u2019ve ever posted and every image you\u2019ve inserted is stored in the database with the full old address. If you only update those two fields, all those links and images will continue to point to the old domain. A true URL change therefore always consists of two parts: changing the address and updating the database. How WordPress uses files and the database together is explained in <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/what-is-wordpress-and-what-is-it-used-for\/\">What WordPress is and what it's used for<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s one more thing to consider. Some of that data is stored in serialized form in the database, a storage format that also records the length of each text string. If you replace the old URL with a simple search-and-replace in phpMyAdmin, that length will no longer be correct, and your theme or page builder\u2019s widgets and settings will be lost. Therefore, always use a tool that takes this into account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wat-je-voorbereidt-voordat-je-iets-wijzigt\">What to Do Before Making Changes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Don't start changing a URL until you have a fresh backup ready and the new address is already working. Make a full backup of your files and your database, and make sure you know how to restore them. This is because you won\u2019t be able to access a site with an incorrectly stored address through the dashboard. You can read about how to create and restore backups in <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/wordpress-backup-and-migration-the-complete-guide\/\">The Guide to Backup and Migration<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, make sure the new domain is already pointing to your hosting and has an SSL certificate. If you update the DNS records, it will take a little while for the change to take effect everywhere. You can find out how domains, DNS, and email are connected in <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/domain-dns-email-wordpress\/\">Domain, DNS, and Email for WordPress<\/a>. With Surver, every site receives a free Let\u2019s Encrypt certificate that is automatically renewed as long as the DNS points to Surver. So wait until the padlock appears on the new domain before switching over in WordPress. If you\u2019re only switching from http to https on the same domain, this is the only preparation you need to do besides backing up your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"de-veilige-volgorde\">The Safe Sequence<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This order prevents you from ending up with a site that works only partially at two addresses at the same time.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Verify that the backup is ready and that the new domain with SSL is accessible.<\/li>\n\n\n<li>Change under <strong>Settings &gt; General<\/strong> Change the WordPress Address and Site Address to the new URL, and click <strong>Save changes<\/strong>. WordPress will log you out; then log in at the new address.<\/li>\n\n\n<li>In the database, replace the old URL with the new one using a plugin such as Better Search Replace, or via WP-CLI with <code>wp search-replace 'https:\/\/oud.nl' 'https:\/\/nieuw.nl' --dry-run<\/code>. The latter option first shows you what will change without saving anything. If everything looks good, execute the command without <code>--dry-run<\/code>.<\/li>\n\n\n<li>Set up a 301 redirect from the old domain to the new one so that visitors and search engines are automatically directed to the correct location.<\/li>\n\n\n<li>Clear the cache and navigate through the site, including the menu, forms, and login page.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">To learn how a 301 redirect works and why you shouldn't use a 302, read <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/what-are-redirects\/\">What are redirects?<\/a>. Keep the old domain active for quite some time, because without it, the redirect won\u2019t work either. If you switch to a new domain, report the change in Google Search Console using the change-of-address tool. If you just want to clean up the URLs of individual pages, you don\u2019t need to go through this entire process; see <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/edit-permalinks-in-wordpress-set-up-seo-friendly-urls\/\">Customize permalinks<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"mixed-content-na-de-overstap-naar-https\">Mixed content after switching to HTTPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the padlock icon disappears after the switch, your page is likely still loading files from the old HTTP address. This is called mixed content. The page itself is secure, but an image, script, or font is still being loaded over an unsecured connection. Step 3 usually resolves this, since the search-and-replace function also updates those references. If the padlock is still missing, press F12 to open your browser\u2019s developer console. It will show exactly which files are still loading via HTTP. Often, these are hard-coded references in your theme\u2019s settings, a widget, or a page builder, and you\u2019ll need to change them manually.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"buitengesloten-zo-herstel-je-het-adres\">Locked out? Here's how to fix the address<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your site is blank or inaccessible after the change and the dashboard is no longer responding, this can almost always be fixed. You just need access to your files or your database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"via-wp-config-php\">Via wp-config.php<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the file using File Manager or FTP <code>wp-config.php<\/code> in the root directory of your site, and add these two lines above the line that says \u201cThat's all\u201d: <code>define('WP_HOME', 'https:\/\/jouwdomein.nl');<\/code> and <code>define('WP_SITEURL', 'https:\/\/jouwdomein.nl');<\/code>. These take precedence over the values in the database, so your site will be accessible again right away. Afterward, make sure to configure the settings correctly and remove the rules. If this is your first time working with this file, please read <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/wordpress-code-editing\/\">Editing WordPress Code Safely<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"via-phpmyadmin\">Via phpMyAdmin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In phpMyAdmin, open the table <code>wp_options<\/code>, find the rows <code>siteurl<\/code> and <code>home<\/code> and adjust the value there. Your table prefix may be different from <code>wp_<\/code>, you can see that in <code>wp-config.php<\/code>. If neither of these works, restore the backup and start over.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With our shared hosting plans, you'll find File Manager, phpMyAdmin, SSH, and WP-CLI all within cPanel, so you can perform these tasks without any additional software. You can restore a backup for free using JetBackup 5. With our <a href=\"https:\/\/surver.nl\/en\/managed-hosting\/wordpress\/\">Managed WordPress Hosting<\/a> you have those resources at your disposal. If you switch to a different host, this is only half the work, and you'll follow <a href=\"https:\/\/surver.nl\/en\/knowledge-base\/step-by-step-guide-to-moving-a-wordpress-website\/\">The Step-by-Step Guide to Moving a Website<\/a>. If you don't want to keep track of the updates yourself after the switch, then <a href=\"https:\/\/surver.nl\/en\/services\/wordpress-maintenance-management\/\">WordPress maintenance<\/a> that for you every month.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"veelgestelde-vragen\">Frequently Asked Questions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Will I lose my rankings on Google if I switch domains?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A little fluctuation is normal, but with a 301 redirect for each URL and a notification in Search Console, most of your accumulated value will be preserved. Keep the old domain and leave the redirects in place.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Do I also need to change the URL if I'm just switching to https?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Set both addresses to https, replace <code>http:\/\/<\/code> by <code>https:\/\/<\/code> in the database and redirect all HTTP traffic using a 301 redirect. Otherwise, you'll end up with mixed content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Can Surver handle the URL change for me?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, if it's part of a move to Surver. The <a href=\"https:\/\/surver.nl\/en\/managed-hosting\/moving-service-website\/\">moving service<\/a> It's included for free with every package, and we'll also set up the site URL and redirects correctly. Your email, DNS records, and domain will be transferred as well.<\/p>","protected":false},"excerpt":{"rendered":"<p>Je bedrijf heeft een nieuwe naam, je gaat van een tijdelijk domein naar het echte domein, of je site moet van http naar https. Je WordPress-URL verander je door het WordPress-adres en het Site-adres onder Instellingen &gt; Algemeen aan te passen, daarna de oude URL in de database te vervangen door de nieuwe en een [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":20512,"template":"","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"kennisbank_categorieen":[62],"class_list":["post-20513","kennisbank","type-kennisbank","status-publish","has-post-thumbnail","hentry","kennisbank_categorieen-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/kennisbank\/20513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/kennisbank"}],"about":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/types\/kennisbank"}],"author":[{"embeddable":true,"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/media\/20512"}],"wp:attachment":[{"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/media?parent=20513"}],"wp:term":[{"taxonomy":"kennisbank_categorieen","embeddable":true,"href":"https:\/\/surver.nl\/en\/wp-json\/wp\/v2\/kennisbank_categorieen?post=20513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}