{"id":202,"date":"2017-08-29T11:57:46","date_gmt":"2017-08-29T09:57:46","guid":{"rendered":"https:\/\/rizzus.tech\/?p=202"},"modified":"2017-08-29T12:13:12","modified_gmt":"2017-08-29T10:13:12","slug":"restore-wordpress-site","status":"publish","type":"post","link":"https:\/\/rizzus.tech\/?p=202","title":{"rendered":"Restore WordPress Site"},"content":{"rendered":"<p>go to wordpress directory via ssh and modify wp-config.php including 2 new string on bottom of file<\/p>\n<pre>define('WP_HOME','<a class=\"external free\" href=\"http:\/\/example.com%27\/\" rel=\"nofollow\">http:\/\/example.com'<\/a>);\r\ndefine('WP_SITEURL','<a class=\"external free\" href=\"http:\/\/example.com%27\/\" rel=\"nofollow\">http:\/\/example.com'<\/a>);\r\n\r\nenter on mysql query by this command on ssh\r\n\r\nmysql -u 'dbuser' -p 'dbname'\r\nenter password 'dbuser'\r\n\r\nnow on mysql&gt; type this command to find the actually location of suteurl and home url\r\n\r\nSELECT * FROM wp_options WHERE option_name = 'home';\r\nSELECT * FROM wp_options WHERE option_name = 'siteurl';\r\n\r\nmodify this url by typing the following command:\r\n\r\nUPDATE wp_options SET option_value=\"http:\/\/example.com\" WHERE option_name = \"home\";\r\nUPDATE wp_options SET option_value=\"http:\/\/example.com\" WHERE option_name = \"siteurl\";\r\n\r\nexit from mysql and reboot server\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>go to wordpress directory via ssh and modify wp-config.php including 2 new string on bottom&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/rizzus.tech\/?p=202\">Read the post<span class=\"screen-reader-text\">Restore WordPress Site<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","excerpt","zoom","full-without-featured","even","excerpt-0"],"_links":{"self":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":1,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions\/203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/media\/204"}],"wp:attachment":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}