{"id":6041,"date":"2022-01-08T13:28:11","date_gmt":"2022-01-08T13:28:11","guid":{"rendered":"https:\/\/www.cldy.com\/support\/?post_type=docs&#038;p=6041"},"modified":"2024-04-05T21:54:37","modified_gmt":"2024-04-05T13:54:37","password":"","slug":"how-to-update-urls-for-your-wordpress-site","status":"publish","type":"docs","link":"https:\/\/www.cldy.com\/support\/help\/how-to-update-urls-for-your-wordpress-site\/","title":{"rendered":"How to Update URLs for your WordPress Site?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">There are different ways on how to change the URLs for your WordPress site, depending on which method you are more familiar with.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Before you go ahead with the steps, take note that you need to change both the website URL and the WordPress URL. They always go hand in hand. While they are of different essence, they have to be of the same link for them to stay connected.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">With that taken care of, here\u2019s how you can change your WordPress URL in 4 ways:<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>1. From WordPress<\/strong><\/h2>\n<p>On your <span style=\"font-weight: 400;\">WordPress dashboard, you should see a menu on the left side of your screen. Go to <\/span><b>Settings<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">You will see the following items that you will need to modify:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>WordPress Address (URL)<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>Site Address (URL)<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Usually, they are kept to the same web address to prevent confusion and ensure that all changes reflect right away to your website itself.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Once you\u2019re done, click on <\/span><b>Save Changes<\/b><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>2. From cPanel &#8211; phpMyAdmin<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Prior to making any changes, make sure you have a backup of your WordPress database.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Login to your cPanel dashboard. Under <\/span><i><span style=\"font-weight: 400;\">Database<\/span><\/i><span style=\"font-weight: 400;\">, select <\/span><b>phpMyAdmin<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6049\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_cpanel-databases-300x57.png\" alt=\"\" width=\"300\" height=\"57\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_cpanel-databases-300x57.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_cpanel-databases-768x146.png 768w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_cpanel-databases.png 995w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The phpMyAdmin page will now load. On the left side, you will see the name of your database, and a menu selection below. Select <\/span><b>wp_options<\/b><span style=\"font-weight: 400;\">.<br \/>\n<\/span><span style=\"font-weight: 400;\">(By default, it will show this name. If you have changed your WP database, it will be this prefix with _options.)<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6050\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-181x300.png\" alt=\"\" width=\"181\" height=\"300\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-181x300.png 181w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options.png 241w\" sizes=\"(max-width: 181px) 100vw, 181px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The right side of your screen will load up showing this:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6061\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-300x62.png\" alt=\"\" width=\"300\" height=\"62\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-300x62.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit.png 758w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Click on the <\/span><b>Edit <\/b><span style=\"font-weight: 400;\">icon beside <\/span><i><span style=\"font-weight: 400;\">siteurl<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><i><span style=\"font-weight: 400;\">home<\/span><\/i><span style=\"font-weight: 400;\">. The page should now look like this:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6062\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-home-300x218.png\" alt=\"\" width=\"300\" height=\"218\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-home-300x218.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-home-1024x745.png 1024w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-home-768x559.png 768w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change_wordpress_urls-phpMyAdmin_wp-options-edit-home.png 1094w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Update the <\/span><b>option_value<\/b><span style=\"font-weight: 400;\"> text field with your desired URL. Before clicking on <\/span><b>Go<\/b><span style=\"font-weight: 400;\">, make sure that <\/span><i><span style=\"font-weight: 400;\">Save<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><i><span style=\"font-weight: 400;\">Go back to previous page<\/span><\/i><span style=\"font-weight: 400;\"> is selected, to bring you back to the preceding page where you can click on <\/span><b>Edit<\/b><span style=\"font-weight: 400;\">, this time for the <\/span><i><span style=\"font-weight: 400;\">home<\/span><\/i><span style=\"font-weight: 400;\"> section. It should be the same process then to change the <\/span><i><span style=\"font-weight: 400;\">home<\/span><\/i><span style=\"font-weight: 400;\"> URL.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>3. Using FTP client &#8211; functions.php<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">For those who are more familiar with FTP workarounds, and also for those who cannot access the Settings page of WordPress, this is the recommended method.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Login to your cPanel account using FTP client. For these steps, we are using CoreFTP for Windows.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Under \/public_html\/your-wp-folder\/wp-content\/themes\/your-wp-theme\/, you should see this screen:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6090\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-300x257.jpg\" alt=\"\" width=\"300\" height=\"257\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-300x257.jpg 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-1024x878.jpg 1024w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-768x659.jpg 768w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client.jpg 1160w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Right click on <\/span><b>functions.php<\/b><span style=\"font-weight: 400;\">, and click on <\/span><b>Edit<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6064\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_functions.php-edit-155x300.png\" alt=\"\" width=\"155\" height=\"300\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_functions.php-edit-155x300.png 155w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_functions.php-edit.png 301w\" sizes=\"(max-width: 155px) 100vw, 155px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Notepad (or your selected text editor) will now launch. Add these at the bottom of the text:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>update_option( &#8216;siteurl&#8217;, &#8216;https:\/\/yourwebsiteurl.com&#8217; );<br \/>\n<\/b><b>update_option( &#8216;home&#8217;, &#8216;https:\/\/yourwebsiteurl.com&#8217; );<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Replace the URL with your preferred web address, and save your changes.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>4. Using FTP client\u00a0 &#8211; wp-config.php<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">If you cannot locate functions.php, this is the method we suggest. From \/public-html\/your-wp-folder\/, look for <\/span><b>wp-config.php<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6091\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-wp-config-267x300.jpg\" alt=\"\" width=\"267\" height=\"300\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-wp-config-267x300.jpg 267w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-wp-config-911x1024.jpg 911w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-wp-config-768x863.jpg 768w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wp-urls-ftp-client-wp-config.jpg 966w\" sizes=\"(max-width: 267px) 100vw, 267px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Right-click and select <\/span><b>Edit<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6065\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_wp-config.php-edit-192x300.png\" alt=\"\" width=\"192\" height=\"300\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_wp-config.php-edit-192x300.png 192w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_wp-config.php-edit.png 374w\" sizes=\"(max-width: 192px) 100vw, 192px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Your text editor will pop-up. Look for the text <\/span><b>\/* That\u2019s all, stop editing! Happy publishing.*\/<\/b><span style=\"font-weight: 400;\">. Paste the following text above this line:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-6066\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_wp-config.php-edit-code-300x55.png\" alt=\"\" width=\"300\" height=\"55\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_wp-config.php-edit-code-300x55.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2022\/01\/change-wordpress-urls_ftp-client_wp-config.php-edit-code.png 353w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">When you\u2019re done, save your changes.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">After successfully changing the URL, always check on your new link to see if everything is working. You can always come back to the same steps to check which parts you may have missed, and you should be good to go.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Need assistance? Contact our support team <a href=\"https:\/\/www.cldy.com\/en-us\/contact-us\/#getintouch\">here<\/a> and they will be happy to lend a hand.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are different ways on how to change the URLs for your WordPress site, depending on which method you are more familiar with.\u00a0 &nbsp; Before you go ahead with the steps, take note that you need to change both the website URL and the WordPress URL. They always go hand in hand. While they are [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[40],"doc_tag":[],"class_list":["post-6041","docs","type-docs","status-publish","hentry","doc_category-wordpress-hosting"],"year_month":"2026-06","word_count":581,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"syd123","author_nicename":"syd123","author_url":"https:\/\/www.cldy.com\/support\/author\/syd123\/"},"doc_category_info":[{"term_name":"WordPress Hosting","term_url":"https:\/\/www.cldy.com\/support\/help-category\/wordpress-hosting\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/6041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/comments?post=6041"}],"version-history":[{"count":8,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/6041\/revisions"}],"predecessor-version":[{"id":9119,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/6041\/revisions\/9119"}],"wp:attachment":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/media?parent=6041"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_category?post=6041"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_tag?post=6041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}