{"id":1661,"date":"2019-01-06T21:11:15","date_gmt":"2019-01-06T12:11:15","guid":{"rendered":"https:\/\/test.ji0vwl.net\/?p=1661"},"modified":"2019-01-13T10:52:15","modified_gmt":"2019-01-13T01:52:15","slug":"wordpress%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88url%e3%82%92%e5%bc%b7%e5%88%b6%e7%9a%84%e3%81%ab%e4%bf%ae%e6%ad%a3%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/ji0vwl.net\/index.php\/2019\/01\/06\/1661\/","title":{"rendered":"WordPress\u306e\u30b5\u30a4\u30c8URL\u3092\u5f37\u5236\u7684\u306b\u4fee\u6b63\u3059\u308b"},"content":{"rendered":"<p>\u5225URL\u306e\u958b\u767a\u74b0\u5883\u3067\u78ba\u8a8d\u3092\u5b8c\u4e86\u3057\u3066\u304b\u3089\u3001\u672c\u756aURL\u306b\u5dee\u3057\u66ff\u3048\u305f\u3044\u3068\u304d\u306b\u5fc5\u305a\u30cf\u30de\u308bWordPress\u306e\u30b5\u30a4\u30c8URL\u554f\u984c\u3002\u3054\u4e01\u5be7\u306b\u30b5\u30a4\u30c8URL\u3092DB\u5185\u306b\u6301\u3063\u3066\u3044\u3066\u3001\u4e00\u6642\u7684\u306b\u5225URL\u3067\u52d5\u304b\u3057\u3066\u304b\u3089\u5143\u306b\u623b\u3057\u305f\u3044\u5834\u5408\u306b\u3001\u306a\u304b\u306a\u304b\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3084\u308a\u65b9\u3092\u30b0\u30b0\u308b\u3068\u30c0\u30e1\u306a\u4f8b\u3070\u304b\u308a\u5f15\u3063\u304b\u304b\u308b\u306e\u3067\u3001\u3046\u307e\u304f\u3044\u3063\u305f\u4f8b\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30c0\u30e1\u306a\u4f8b\uff08define\u3092\u4f7f\u3046\uff09<\/h4>\n<p>\u3053\u308c\u3067\u3082\u4e00\u5fdc\u52d5\u3044\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3059\u304c\u5168\u3066\u306e\u53c2\u7167\u304c\u4e0a\u66f8\u304d\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u4e00\u90e8DB\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308bURL\u3082\u53c2\u7167\u3055\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u3042\u307e\u308a\u3088\u304f\u7121\u3044\u3067\u3059\u3002\u3057\u304b\u3082\u3001\u8a2d\u5b9a\u306e\u30b5\u30a4\u30c8URL\u304c\u30b0\u30ec\u30fc\u30a2\u30a6\u30c8\u3057\u3066\u3057\u307e\u3044\u4fee\u6b63\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre>$ vi \/var\/www\/html\/wp-config.php\r\n-----------------------------------------------------\r\n.\r\n.\r\n# \u4e00\u6642URL\uff08\u30c0\u30e1\u306a\u4f8b\uff09\r\ndefine('WP_HOME','https:\/\/example.com');\r\ndefine('WP_SITEURL','https:\/\/example.com');\r\n\r\n\/* \u7de8\u96c6\u304c\u5fc5\u8981\u306a\u306e\u306f\u3053\u3053\u307e\u3067\u3067\u3059 ! WordPress \u3067\u30d6\u30ed\u30b0\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044\u3002 *\/\r\n\r\n\/** Absolute path to the WordPress directory. *\/\r\nif ( !defined('ABSPATH') )\r\n        define('ABSPATH', dirname(__FILE__) . '\/');\r\n\r\n\/** Sets up WordPress vars and included files. *\/\r\nrequire_once(ABSPATH . 'wp-settings.php');\r\n-----------------------------------------------------\r\n:wq<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u3046\u307e\u304f\u3044\u3063\u305f\u4f8b\uff08update_option\u3092\u4f7f\u3046\uff09<\/h4>\n<p>update_option\u3092\u4f7f\u3046\u3068\u3001\u8a2d\u5b9a\u306e\u30b5\u30a4\u30c8URL\u304c\u30b0\u30ec\u30fc\u30a2\u30a6\u30c8\u305b\u305a\u306b\u4fee\u6b63\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u30b5\u30a4\u30c8URL\u3092\u9593\u9055\u3048\u3066\u3057\u307e\u3044\u4e8c\u5ea6\u3068\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u56f0\u3063\u3066\u3057\u307e\u3063\u305f\u3068\u304d\u306b\u3082\u6709\u52b9\u304b\u3068\u601d\u3044\u307e\u3059\u3002require_once\u3088\u308a\u3082\u4e0b\u3001\u3064\u307e\u308awp-config.php\u306e\u4e00\u756a\u4e0b\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>$ vi \/var\/www\/html\/wp-config.php\r\n-----------------------------------------------------\r\n.\r\n.\r\n\/* \u7de8\u96c6\u304c\u5fc5\u8981\u306a\u306e\u306f\u3053\u3053\u307e\u3067\u3067\u3059 ! WordPress \u3067\u30d6\u30ed\u30b0\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044\u3002 *\/\r\n\r\n\/** Absolute path to the WordPress directory. *\/\r\nif ( !defined('ABSPATH') )\r\n        define('ABSPATH', dirname(__FILE__) . '\/');\r\n\r\n\/** Sets up WordPress vars and included files. *\/\r\nrequire_once(ABSPATH . 'wp-settings.php');\r\n\r\n# \u4e00\u6642URL\r\nupdate_option( 'siteurl','https:\/\/example.com');\r\nupdate_option( 'home','https:\/\/example.com');\r\n-----------------------------------------------------\r\n:wq<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5225URL\u306e\u958b\u767a\u74b0\u5883\u3067\u78ba\u8a8d\u3092\u5b8c\u4e86\u3057\u3066\u304b\u3089\u3001\u672c\u756aURL\u306b\u5dee\u3057\u66ff\u3048\u305f\u3044\u3068\u304d\u306b\u5fc5\u305a\u30cf\u30de\u308bWordPress\u306e\u30b5\u30a4\u30c8URL\u554f\u984c\u3002\u3054\u4e01\u5be7\u306b\u30b5\u30a4\u30c8URL\u3092DB\u5185\u306b\u6301\u3063\u3066\u3044\u3066\u3001\u4e00\u6642\u7684\u306b\u5225URL\u3067\u52d5\u304b\u3057\u3066\u304b\u3089\u5143\u306b\u623b\u3057\u305f\u3044\u5834\u5408\u306b\u3001\u306a\u304b\u306a\u304b\u3046 &hellip; <a href=\"https:\/\/ji0vwl.net\/index.php\/2019\/01\/06\/1661\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">WordPress\u306e\u30b5\u30a4\u30c8URL\u3092\u5f37\u5236\u7684\u306b\u4fee\u6b63\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1661","post","type-post","status-publish","format-standard","hentry","category-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/1661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/comments?post=1661"}],"version-history":[{"count":0,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/posts\/1661\/revisions"}],"wp:attachment":[{"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/media?parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/categories?post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ji0vwl.net\/index.php\/wp-json\/wp\/v2\/tags?post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}