{"id":1471,"date":"2021-06-02T23:29:15","date_gmt":"2021-06-02T14:29:15","guid":{"rendered":"https:\/\/tippang.com\/?p=1471"},"modified":"2021-06-02T23:31:42","modified_gmt":"2021-06-02T14:31:42","slug":"using-wp-config-php-file-or-functions-php-file","status":"publish","type":"post","link":"https:\/\/tippang.com\/?p=1471","title":{"rendered":"Using wp-config.php File or\u00a0 functions.php File\u00a0to change New URL,"},"content":{"rendered":"<p>Using wp-config.php File or\u00a0 functions.php File\u00a0<\/p>\n<p>Way 1. Change WordPress Site URLs Using wp-config.php File<\/p>\n<p>If you installed your wordpress such as :\u00a0\/var\/www\/html\/wordpress\/*<\/p>\n<p>EDIT :<\/p>\n<p>sudo vi \/var\/www\/html\/wordpress\/wp-config.php<\/p>\n<p>Next, add the following code at the bottom:<\/p>\n<p>1. define( &#8216;WP_HOME&#8217;, &#8216;https:\/\/mywordpress.com&#8217; );<br \/>\n2. define( &#8216;WP_SITEURL&#8217;, &#8216;https:\/\/mywordpress.com&#8217; );<\/p>\n<p>Way 2. Change WordPress Site URLs Using function.php File<\/p>\n<p>If you installed your wordpress&#8217;s themes as urbane : \/var\/www\/html\/tippang\/wp-content\/themes\/urbane\/<\/p>\n<p>EDIT :<\/p>\n<p>sudo vi \/var\/www\/html\/tippang\/wp-content\/themes\/urbane\/function.php<\/p>\n<p>Next, add the following code at the bottom:<\/p>\n<p>1. update_option( &#8216;siteurl&#8217;, &#8216;https:\/\/mywordpress.com&#8217; );<\/p>\n<p>2. update_option( &#8216;home&#8217;, &#8216;https:\/\/mywordpress.com&#8217; );<\/p>\n<p>Once everything gets back to normal, remove the two lines of code by your changes<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using wp-config.php File or\u00a0 functions.php File\u00a0 Way 1. Change WordPress Site URLs Using wp-config.php File If you installed your wordpress such as :\u00a0\/var\/www\/html\/wordpress\/* EDIT : sudo vi \/var\/www\/html\/wordpress\/wp-config.php Next, add the following code at the bottom: 1. define( &#8216;WP_HOME&#8217;, &#8216;https:\/\/mywordpress.com&#8217; ); 2. define( &#8216;WP_SITEURL&#8217;, &#8216;https:\/\/mywordpress.com&#8217; ); Way 2. Change WordPress Site URLs Using function.php File If you installed your wordpress&#8217;s themes as urbane : \/var\/www\/html\/tippang\/wp-content\/themes\/urbane\/ EDIT : sudo vi \/var\/www\/html\/tippang\/wp-content\/themes\/urbane\/function.php Next, add the following code at the bottom: 1. update_option( &#8216;siteurl&#8217;, &#8216;https:\/\/mywordpress.com&#8217; ); 2. update_option( &#8216;home&#8217;, &#8216;https:\/\/mywordpress.com&#8217; ); Once everything gets back to normal, remove the two lines of code by your changes<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-1471","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts\/1471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1471"}],"version-history":[{"count":3,"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions"}],"predecessor-version":[{"id":1475,"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions\/1475"}],"wp:attachment":[{"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}