{"id":5515,"date":"2018-08-24T23:12:09","date_gmt":"2018-08-24T23:12:09","guid":{"rendered":"https:\/\/www.truehost.co.ke\/support\/?post_type=ht_kb&#038;p=5515"},"modified":"2024-06-21T08:31:31","modified_gmt":"2024-06-21T08:31:31","password":"","slug":"move-wordpress-one-url-another-url","status":"publish","type":"docs","link":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/","title":{"rendered":"How to move WordPress from one URL to another URL"},"content":{"rendered":"<p>Changing URLs on WordPress is unlike other scripts in which you would have a configuration file that you would need to edit. \u00a0In WordPress, everything configuration related is located inside the database.<\/p>\n<p>There&#8217;s 3 main things that need to change;<\/p>\n<p>UPDATE wp_options SET option_value = replace(option_value, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;) WHERE option_name = &#8216;home&#8217; OR option_name = &#8216;siteurl&#8217;;<br \/>\nUPDATE wp_posts SET guid = replace(guid, &#8216;http:\/\/www.old-domain.com&#8217;,&#8217;http:\/\/www.new-domain.com&#8217;);<br \/>\nUPDATE wp_posts SET post_content = replace(post_content, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;<\/p>\n<p>All you would need to do is change the OLD-DOMAIN section to the NEW-DOMAIN and then paste that into the SQL section inside phpmyadmin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing URLs on WordPress is unlike other scripts in which you would have a configuration file that you would need to edit. \u00a0In WordPress, everything configuration related is located inside the database. There&#8217;s 3 main things that need to change; UPDATE wp_options SET option_value = replace(option_value, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;) WHERE option_name = &#8216;home&#8217; OR option_name = [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1838],"doc_tag":[],"class_list":["post-5515","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-06","word_count":120,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"simon m","author_nicename":"simon","author_url":"https:\/\/www.truehost.com\/support\/author\/simon\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to move Wordpress from one URL to another URL -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to move Wordpress from one URL to another URL -\" \/>\n<meta property=\"og:description\" content=\"Changing URLs on WordPress is unlike other scripts in which you would have a configuration file that you would need to edit. \u00a0In WordPress, everything configuration related is located inside the database. There&#8217;s 3 main things that need to change; UPDATE wp_options SET option_value = replace(option_value, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;) WHERE option_name = &#8216;home&#8217; OR option_name = [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T08:31:31+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/move-wordpress-one-url-another-url\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/move-wordpress-one-url-another-url\\\/\",\"name\":\"How to move Wordpress from one URL to another URL -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2018-08-24T23:12:09+00:00\",\"dateModified\":\"2024-06-21T08:31:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/move-wordpress-one-url-another-url\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/move-wordpress-one-url-another-url\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/move-wordpress-one-url-another-url\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to move WordPress from one URL to another URL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to move Wordpress from one URL to another URL -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/","og_locale":"en_US","og_type":"article","og_title":"How to move Wordpress from one URL to another URL -","og_description":"Changing URLs on WordPress is unlike other scripts in which you would have a configuration file that you would need to edit. \u00a0In WordPress, everything configuration related is located inside the database. There&#8217;s 3 main things that need to change; UPDATE wp_options SET option_value = replace(option_value, &#8216;http:\/\/www.old-domain.com&#8217;, &#8216;http:\/\/www.new-domain.com&#8217;) WHERE option_name = &#8216;home&#8217; OR option_name = [&hellip;]","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/","article_modified_time":"2024-06-21T08:31:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/","name":"How to move Wordpress from one URL to another URL -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"datePublished":"2018-08-24T23:12:09+00:00","dateModified":"2024-06-21T08:31:31+00:00","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/move-wordpress-one-url-another-url\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to move WordPress from one URL to another URL"}]},{"@type":"WebSite","@id":"https:\/\/www.truehost.com\/support\/#website","url":"https:\/\/www.truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/www.truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/www.truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/5515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/comments?post=5515"}],"version-history":[{"count":1,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/5515\/revisions"}],"predecessor-version":[{"id":5516,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/5515\/revisions\/5516"}],"wp:attachment":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/media?parent=5515"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=5515"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=5515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}