{"id":1208196,"date":"2023-10-06T17:41:12","date_gmt":"2023-10-06T17:41:12","guid":{"rendered":"https:\/\/rankmath.com\/?p=1208196"},"modified":"2025-09-16T03:56:50","modified_gmt":"2025-09-16T03:56:50","slug":"how-to-change-wordpress-site-url","status":"publish","type":"post","link":"https:\/\/rankmath.com\/nl\/blog\/how-to-change-wordpress-site-url\/","title":{"rendered":"Hoe u de URL van uw WordPress-site kunt wijzigen"},"content":{"rendered":"<p>Your WordPress site URL is the address visitors type in to reach your website. There may come a time when you need to change it, maybe you\u2019re moving to a new domain, switching from HTTP to HTTPS, or simply updating your site\u2019s structure. <\/p>\n\n\n\n<p>At first, this might seem tricky, but don\u2019t worry. <\/p>\n\n\n\n<p>With the right steps, you can update your WordPress site URL without breaking your site. In this post, you\u2019ll learn exactly how to make the change and keep everything running smoothly.<\/p>\n\n\n\n<p>Laten we er dus eens induiken en de best practices voor het bijwerken van de URL van uw website verkennen.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"toc\">\n    <h2>Inhoudsopgave<\/h2>\n    <ol>\n        <li><a href=\"#why-change-site-url\">Why Change WordPress Site URL?<\/a><\/li>\n        <li><a href=\"#WordPress-and-site-address-url\">What is WordPress Address URL and Site Address URL?<\/a><\/li>\n        <li><a href=\"#changing-the-wordpress-site-urls\">Hoe u de URL van uw WordPress-site kunt wijzigen<\/a>\n            <ul>\n                <li><a href=\"#from-admin-area\">Change WordPress Site URL From Admin Area<\/a><\/li>\n                <li><a href=\"#using-functions-file\">Change WordPress Site URL Using functions.php File<\/a><\/li>\n                <li><a href=\"#using-wp-config-file\">Change WordPress Site URL Using wp-config.php File<\/a><\/li>\n                <li><a href=\"#change-site-urls-in-database\">Change WordPress Site URL in the Database <\/a><\/li>\n                <li><a href=\"#change-site-url-with-wp-cli\">Change WordPress URL With WP-CLI<\/a><\/li>\n            <\/ul>\n        <\/li>\n   <li><a href=\"#next-steps\">WordPress URL Change: What Comes Next<\/a><\/li>\n        <li><a href=\"#faqs\">Veel Gestelde Vragen<\/a><\/li>\n        <li><a href=\"#conclusion\">Conclusie<\/a><\/li>\n    <\/ol>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-change-site-url\"><span class=\"number\">1<\/span>  Why Change WordPress Site URL?<\/h2>\n\n\n\n<p>Changing the site URL in WordPress carries significant importance for several reasons:<\/p>\n\n\n\n<p><strong>Reflecting Rebranding or Redirection:<\/strong> If your website is undergoing a rebranding process or if you&#8217;ve decided to redirect it to a new domain, changing the site URL becomes essential. It ensures that your online identity aligns with your new brand, maintaining consistency in your digital presence.<\/p>\n\n\n\n<p><strong>Avoiding Broken Links:<\/strong> All internal links should reflect the new URL structure when your site&#8217;s URL changes. Failing to do so can result in <a href=\"https:\/\/rankmath.com\/blog\/broken-links\/\" data-type=\"post\" data-id=\"1303324\">verbroken koppelingen<\/a>, causing frustration for your visitors and potentially harming your website&#8217;s credibility.<\/p>\n\n\n\n<p><strong>Enhancing User Experience:<\/strong> A smooth transition to a new site URL ensures a seamless user experience. Your visitors won&#8217;t encounter errors or missing content, which can help maintain their trust in your website.<\/p>\n\n\n\n<p><strong>Security and Compatibility:<\/strong> Transitioning to a new URL might involve switching to HTTPS for a secure connection. This is crucial for user security and SEO, as search engines favor secure websites.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WordPress-and-site-address-url\"><span class=\"number\">2<\/span>  What is WordPress Address URL and Site Address URL?<\/h2>\n\n\n\n<p>WordPress Address (URL) and Site Address (URL) are two essential settings in WordPress that define the web addresses (URLs) where your WordPress site can be accessed. They serve different purposes, and understanding their distinctions is important for managing your WordPress website effectively.<\/p>\n\n\n\n<p>De <strong>WordPress Address (URL) <\/strong>points to the directory where your WordPress core files reside, typically behind the scenes.<\/p>\n\n\n\n<p>De <strong>Site Address (URL)<\/strong> represents visitors&#8217; public address to access your website. It appears in your visitor&#8217;s browsers&#8217; address bars when they visit your site.<\/p>\n\n\n\n<p>It&#8217;s necessary to ensure that these URLs are correctly configured, as discrepancies between them can lead to issues like broken links, incorrect resource loading, and SEO problems. <\/p>\n\n\n\n<p>Additionally, when moving your WordPress site to a different domain or directory, updating these settings is necessary to maintain proper functionality and appearance. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"changing-the-wordpress-site-urls\"><span class=\"number\">3<\/span>  Hoe u de URL van uw WordPress-site kunt wijzigen<\/h2>\n\n\n\n<p>Let us now discuss different methods to change your site URL.<\/p>\n\n\n\n<p class=\"takeaway yellow\"><strong>Opmerking:<\/strong> Before making any changes, creating a full WordPress site backup is important. This backup will help you revert back in case anything goes wrong. Refer to our dedicated tutorial on <a href=\"https:\/\/rankmath.com\/blog\/backup-wordpress-site\/\">backing up WordPress websites.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"from-admin-area\"><span class=\"number\">3.1<\/span>  Change WordPress Site URL From Admin Area<\/h3>\n\n\n\n<p>This method is the simplest method to change your site URL. <\/p>\n\n\n\n<p>First, log in to your WordPress dashboard and navigate to <strong>Settings \u2192 General<\/strong>, zoals hieronder weergegeven.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2560\" height=\"1245\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/general-settings-1-scaled.jpg\" alt=\"Algemene instellingen\" class=\"wp-image-1602374\" \/><\/figure>\n\n\n\n<p>On the General Settings page, you&#8217;ll find two fields labeled <strong>WordPress Address (URL)<\/strong> en <strong>Site Address (URL)<\/strong>.<\/p>\n\n\n\n<p>To change your site&#8217;s URL, update the <strong>WordPress Address (URL)<\/strong> field with the new URL you want to use. Ensure that the URL format is correct, typically beginning with <code>http:\/\/<\/code> of <code>https:\/\/<\/code>.<\/p>\n\n\n\n<p>Next, update the <strong>Site Address (URL)<\/strong> field with the same new URL you entered in the previous step. It&#8217;s essential that both the WordPress Address and Site Address match to avoid any issues.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2560\" height=\"1263\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/general-settings-url-scaled.jpg\" alt=\"Update Site Address and WordPress Site URL\" class=\"wp-image-1602377\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-functions-file\"><span class=\"number\">3.2<\/span>  Change WordPress Site URL Using functions.php File<\/h3>\n\n\n\n<p>If you cannot access your WordPress admin, you can change the WordPress site URL using the functions.php file. However, this method should be cautiously approached, as incorrect modifications can result in a broken site.<\/p>\n\n\n\n<p>To begin with, access your WordPress files using an FTP client like <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noopener\">FileZilla<\/a> or your hosting provider&#8217;s file manager. <\/p>\n\n\n\n<p>Navigate to your WordPress theme folder, usually located in the <code>wp-content\/themes\/<\/code> directory. Inside the theme folder, find the <strong>functies.php<\/strong> het dossier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1426\" height=\"898\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/FTP-functions.php-file.jpeg\" alt=\"Locate functions.php file\" class=\"wp-image-1208294\" \/><\/figure>\n\n\n\n<p>Use your preferred editor to open the functions.php file and add the following code to the bottom of the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>update_option( 'siteurl', 'https:\/\/yoursite.com' );\nupdate_option( 'home', 'https:\/\/yoursite.com' );<\/code><\/pre>\n\n\n\n<p>Replace <code>https:\/\/yoursite.com<\/code> with your new site URL. Once you&#8217;ve added the code, save the functions.php file and upload it back to the server.<\/p>\n\n\n\n<p>Visit your website to verify if everything is working correctly. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"using-wp-config-file\"><span class=\"number\">3.3<\/span>  Change WordPress Site URL Using wp-config.php File<\/h3>\n\n\n\n<p>You can use this method if you are unsure which WordPress theme you need to edit or can&#8217;t find your functions.php file.<\/p>\n\n\n\n<p>You can access your WordPress files using an FTP client like FileZilla or your hosting provider&#8217;s file manager. Navigate to the root directory of your WordPress installation, where you can find the wp-config.php file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1420\" height=\"922\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/edit-wp-config-file.jpeg\" alt=\"Edit wp-config.php file\" class=\"wp-image-1208736\" \/><\/figure>\n\n\n\n<p> Next, right-click on the wp-config.php file and select the <strong>View\/Edit<\/strong> option to edit the file. Add the following code just above the line that says, &#8216;That&#8217;s all, stop editing! Happy publishing&#8217;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_HOME', 'https:\/\/yoursite.com' );\ndefine( 'WP_SITEURL', 'https:\/\/yoursite.com' );<\/code><\/pre>\n\n\n\n<p>Don&#8217;t forget to replace&nbsp;<code>https:\/\/yoursite.com<\/code> it with your desired new site URL. After adding the code, save the file and upload it to the server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"change-site-urls-in-database\"><span class=\"number\">3.4<\/span>  Change WordPress Site URL in the Database <\/h3>\n\n\n\n<p>This method should be cautiously approached as it directly modifies the WordPress database. <\/p>\n\n\n\n<p>Log in to your web hosting control panel and navigate to the <strong>phpMyAdmin<\/strong> section to access the database management interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1750\" height=\"1196\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/phpMyAdmin-interface.jpeg\" alt=\"phpMyAdmin interface\" class=\"wp-image-1208741\" \/><\/figure>\n\n\n\n<p class=\"takeaway yellow\"><strong>Opmerking:<\/strong>&nbsp;The steps might slightly differ depending on your hosting provider. However, all cPanel hosting providers allow you to edit database settings.<\/p>\n\n\n\n<p>You&#8217;ll find a table in your WordPress database named <strong>&#8216;wp_options&#8217;<\/strong> (the prefix <code><strong>wp_<\/strong><\/code> may vary based on your WordPress installation). Click on the table to open it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1810\" height=\"540\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/wp-options-table.jpeg\" alt=\"wp-options table\" class=\"wp-image-1208746\" \/><\/figure>\n\n\n\n<p>In the wp_options table, you&#8217;ll see rows with option names. Look for two specific rows: <strong>siteurl<\/strong> en <strong>thuis<\/strong>. These rows store your site&#8217;s URL information.<\/p>\n\n\n\n<p>Klik op de <strong>Bewerk<\/strong> button next to the siteurl row. In the <strong>option_value<\/strong> field, replace the current URL with your new site URL. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1992\" height=\"1272\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/option-value-1.jpeg\" alt=\"replace the URL\" class=\"wp-image-1208983\" \/><\/figure>\n\n\n\n<p>Click the <strong>Go<\/strong> button in the bottom right corner to save your database changes.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2560\" height=\"1059\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/save-db-changes-scaled.jpeg\" alt=\"click the Go button\" class=\"wp-image-1208948\" \/><\/figure>\n\n\n\n<p>Repeat the same process for the <strong>thuis<\/strong> row. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1736\" height=\"400\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2023\/10\/home-row.jpeg\" alt=\"Repeat the procedure for the home row\" class=\"wp-image-1208989\" \/><\/figure>\n\n\n\n<p>Once done, visit your website using the new URL to ensure everything is working correctly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"change-site-url-with-wp-cli\"><span class=\"number\">3.5<\/span>  Change WordPress URL With WP-CLI<\/h3>\n\n\n\n<p>Changing the WordPress URL using WP-CLI (WordPress Command Line Interface) is another method, especially for those comfortable with the command line.<\/p>\n\n\n\n<p>To use WP-CLI, you need access to your server, open your terminal or SSH client, and log in to your server.<\/p>\n\n\n\n<p>Add the following commands to change the site URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp option update home 'https:\/\/yoursiteurl.com'\nwp option update siteurl 'https:\/\/yoursiteurl.com'<\/code><\/pre>\n\n\n\n<p>Replace the <code>https:\/\/yoursiteurl.com<\/code> text with your actual domain name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"next-steps\"><span class=\"number\">4<\/span>  WordPress URL Change: What Comes Next<\/h2>\n\n\n\n<p>Changing your WordPress site URL is just the first step. After updating it, you\u2019ll want to double-check a few things to make sure your site continues to run smoothly. Here\u2019s a handy checklist for you to follow:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Clear your cache<\/strong>: Clear both your browser and WordPress caching plugin cache to avoid loading old data.<\/li>\n\n\n\n<li><strong>Bijwerken <a href=\"https:\/\/rankmath.com\/blog\/internal-linking\/\">internal links<\/a><\/strong>: Go through your posts, pages, and menus to make sure links point to the new URL.<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/rankmath.com\/kb\/setting-up-redirections\/\">Set up redirects<\/a><\/strong>: If you changed your domain, set up 301 redirects so visitors and search engines are sent to the right pages.<\/li>\n\n\n\n<li><strong>Update media and images<\/strong>: Ensure your images and other media files are loading correctly with the new URL.<\/li>\n\n\n\n<li><strong>Check plugins and themes<\/strong>: Some plugins or themes may have absolute URLs stored. Update them if needed.<\/li>\n\n\n\n<li><strong>Resubmit to Google Search Console<\/strong>: Add your new site URL to Google Search Console so your updated site gets indexed quickly.<\/li>\n\n\n\n<li><strong>Test your site<\/strong>: Open your site in an incognito window and click around to confirm everything is working as expected.<\/li>\n<\/ul>\n\n\n\n<p>By following this checklist, you\u2019ll make sure your WordPress site transition is smooth and your visitors won\u2019t run into errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faqs\"><span class=\"number\">5<\/span>  Veel Gestelde Vragen<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list\">\n<div id=\"faq-question-1696587001804\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question\">What should I do with external links pointing to my old URL?<\/h3>\n<div class=\"rank-math-answer\">\n\n<p>Update external links manually or use redirection plugins to ensure they point to your new URL. This maintains user experience and SEO.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1696587012359\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question\">How can I restore my WordPress site if I accidentally modify the URL settings?<\/h3>\n<div class=\"rank-math-answer\">\n\n<p>Occasionally, even users without technical expertise may unintentionally alter the WordPress URL and site address settings within the WordPress admin area. To recover, you&#8217;ll need to follow our instructions to revert the WordPress URLs. This can be done by editing the functions.php file, wp-config.php, or adjusting the settings directly within the WordPress database.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1696587288300\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question\">Can I use a plugin to change the site URL?<\/h3>\n<div class=\"rank-math-answer\">\n\n<p>Yes, plugins like <a href=\"https:\/\/wordpress.org\/plugins\/go-live-update-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go Live Update URLs<\/a> can assist with URL changes.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\"><span class=\"number\">6<\/span>  Conclusie<\/h2>\n\n\n\n<p>Changing your WordPress site URL is an important step in keeping your website updated and secure. <\/p>\n\n\n\n<p>Remember to follow up with the post-URL change checklist so your visitors and search engines experience a smooth transition. <\/p>\n\n\n\n<p>By taking the time to do it right, you\u2019ll protect your SEO, maintain your site\u2019s performance, and give your audience a good browsing experience.<\/p>\n\n\n\n<p>&nbsp;If you like this post, let us know by&nbsp;<a href=\"https:\/\/twitter.com\/rankmathseo\" target=\"_blank\" rel=\"noopener\"><strong>Twitteren @rankmathseo.<\/strong><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Your WordPress site URL is the address visitors type in to reach your website. There may come a time when you need to change it, maybe you\u2019re moving to a new domain, switching from HTTP to HTTPS, or simply updating your site\u2019s structure. At first, this might seem tricky, but don\u2019t worry. With the right [&hellip;]<\/p>","protected":false},"author":37,"featured_media":1208905,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[],"class_list":{"0":"post-1208196","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wp-tutorials"},"_links":{"self":[{"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/posts\/1208196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/comments?post=1208196"}],"version-history":[{"count":8,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/posts\/1208196\/revisions"}],"predecessor-version":[{"id":1602378,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/posts\/1208196\/revisions\/1602378"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/media\/1208905"}],"wp:attachment":[{"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/media?parent=1208196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/categories?post=1208196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rankmath.com\/nl\/wp-json\/wp\/v2\/tags?post=1208196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}