{"id":4984,"date":"2020-04-19T03:04:03","date_gmt":"2020-04-19T03:04:03","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=4984"},"modified":"2020-04-19T17:45:27","modified_gmt":"2020-04-19T17:45:27","slug":"how-to-change-wordpress-urls","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=4984","title":{"rendered":"How to change WordPress URLs"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Changing WordPress URLs<\/h2>\n\n\n\n<p>If for whatever reason you find yourself in need of change the URLs of your WordPress website, there are a lot of good tools to help you on that task, in our case we&#8217;re going to use a free plugin called <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\">Better Search Replace<\/a> developed by <strong>Delicious Brains<\/strong>.<\/p>\n\n\n<p class=\"fonts-plugin-block \" style=\"font-family: calibri;font-weight: 700;font-size: 20px;color: #0693e3\"><a href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\">https:\/\/wordpress.org\/plugins\/better-search-replace\/<\/a><\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"660\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-10.png\" alt=\"\" class=\"wp-image-4992\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-10.png 994w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-10-300x199.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-10-768x510.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Better Search Replace &#8211; WordPress plugin<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress backup<\/h2>\n\n\n\n<p>In our case, after the restore of a WordPress backup into a local Linux CentOS 7 Virtual Machine, we have to change the URLs to make them point to the Local path.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-00.png\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"544\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-00.png\" alt=\"\" class=\"wp-image-4995\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-00.png 943w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-00-300x173.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-00-768x443.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>WordPress website &#8211; Internet URL<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Better Search Replace plugin<\/h2>\n\n\n\n<p>The following image shows the main screen of the Better Search Replace plugin, here you must configure both the Internet URL and the Local Path.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-02.png\"><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"841\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-02.png\" alt=\"\" class=\"wp-image-4998\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-02.png 944w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-02-300x267.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-02-768x684.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Better Search Replace &#8211; main screen<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">URLs change completed<\/h2>\n\n\n\n<p>The amount of replacements depends on each website, in our case as you can see there were 1978 updates.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-03.png\"><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"293\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-03.png\" alt=\"\" class=\"wp-image-4999\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-03.png 815w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-03-300x108.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-03-768x276.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>Better Search Replace &#8211; Job well done!<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Local Path configured successfully<\/h2>\n\n\n\n<p>Once the plugin has done its job you can verify each and every image, all of them must point now to the local path.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-01.png\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"544\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-01.png\" alt=\"\" class=\"wp-image-4997\" srcset=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-01.png 943w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-01-300x173.png 300w, https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/04\/wordpress-plugin-change-urls-better-search-replace-01-768x443.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><figcaption>WordPress local copy &#8211; Images pointing to local path<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing WordPress URLs If for whatever reason you find yourself in need of change the URLs of your WordPress website, there are a lot of good tools to help you on that task, in our case we&#8217;re going to use a free plugin called Better Search Replace developed by Delicious Brains. WordPress backup In our &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=4984\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to change WordPress URLs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4984","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4984"}],"version-history":[{"count":12,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4984\/revisions"}],"predecessor-version":[{"id":5012,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/4984\/revisions\/5012"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}