{"id":3331,"date":"2022-01-26T19:10:10","date_gmt":"2022-01-26T18:10:10","guid":{"rendered":"https:\/\/blog.ecotronics.ch\/wordpress\/?p=3331"},"modified":"2022-01-26T19:11:27","modified_gmt":"2022-01-26T18:11:27","slug":"change-your-wordpress-links","status":"publish","type":"post","link":"https:\/\/blog.ecotronics.ch\/wordpress\/?p=3331","title":{"rendered":"Change your WordPress Links"},"content":{"rendered":"\n<p>I recently changed my host provider. Afterwards my wordpress blog got a new domain (at last with https)  and a new url. Unfortunately, WordPress works with <strong>absolute links<\/strong>. All my image and other links went still to the old url. You find a lot of tipps how to change your with SQL or with plugin. Alas, I didn&#8217;t want to install another plugin. The SQL wasn&#8217;t an option either, as wordpress has more than 20 tables and you have to make the changes separately for each table and each field where the url could  occur.<\/p>\n\n\n\n<p>I found a simpler and less tedious way: The Plesk Control Panel is offering in the menu &#8220;Databases&#8221; the option to export and import database dumps. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/blog.ecotronics.ch\/wordpress\/wp-content\/uploads\/2022\/01\/PleskExportImportDump_2022-01-26_184535.jpg\" alt=\"Exporting and importing database dumps in Plesk\" width=\"724\" height=\"269\" title=\"Exporting and importing database dumps in Plesk\"\/><\/figure>\n\n\n\n<p>A database dump of a MySQL-database is a very large sql textfile. You just unzip the SQL file, open it in your favourite text editor (mine is Notepad++), search and replace all the Urls, save the changed textfile and reimport the dump file. This worked like a charm! And it was worth the effort, my text editor made more than 30&#8217;000 replacements! I recommend to keep the original dump at least until you successfully uploaded the revised dump file. If anything goes wrong, you can go back to the previous version. <\/p>\n","protected":false},"excerpt":{"rendered":"\n<p>I recently changed my host provider. Afterwards my wordpress blog got a new domain (at last with https) and a new url. Unfortunately, WordPress works with absolute links. All my image and other links went still to the old url. You find a lot of tipps how to change your with SQL or with [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,7],"tags":[287],"_links":{"self":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3331"}],"collection":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3331"}],"version-history":[{"count":3,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3331\/revisions"}],"predecessor-version":[{"id":3334,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3331\/revisions\/3334"}],"wp:attachment":[{"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ecotronics.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}