{"id":5162,"date":"2020-05-30T00:59:08","date_gmt":"2020-05-29T15:59:08","guid":{"rendered":"http:\/\/hack.gpl.jp\/?p=5162"},"modified":"2020-05-30T00:59:08","modified_gmt":"2020-05-29T15:59:08","slug":"post-5162","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2020\/05\/30\/post-5162.html","title":{"rendered":"ClassicPress \u3067 \u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u308b"},"content":{"rendered":"

\u3061\u3087\u3063\u3068\u6642\u9593\u304c\u7a7a\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u81ea\u5b85\u30b5\u30fc\u30d0\u3067ClassicPress\u3092\u7acb\u3061\u4e0a\u3052\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d9a\u304d\u3067\u3059\u3002\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u6a5f\u80fd\u3092\u4f7f\u3063\u3066ClassicPress\u3092\u904b\u7528\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u304c\u3001\u307e\u305a\u306f\u30ed\u30fc\u30ab\u30eb\u306eMAMP Pro \u74b0\u5883\u3067\u3084\u3063\u3066\u6d41\u308c\u3092\u63b4\u3093\u3067\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n

\u4eca\u56de\u306f\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3067\u306e\u904b\u7528\u3092\u60f3\u5b9a\u3057\u3066\u3044\u3066\u3001\u5927\u307e\u304b\u306a\u6d41\u308c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u2460\u540d\u524d\u89e3\u6c7a\u3067\u540c\u3058\u30b5\u30fc\u30d0\u306b\u5411\u3051\u308b
\nDNS\u5468\u308a\u3001\u307e\u305f\u306fhosts \u3067\u4ee5\u4e0b\u30c9\u30e1\u30a4\u30f3\u3092\uff11\u3064\u306e\u30b5\u30fc\u30d0\u306b\u5411\u3051\u308b\u3088\u3046\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\n\u307e\u305f\u306f\u3001\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9 DNS \u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306bHOSTS\u3092\u3044\u3058\u308a\u307e\u3057\u305f\u3002
\n\u4f8b\uff1agpl.jp \u2192 127.0.0.1
\nwww.gpl.jp \u2192 127.0.0.1
\nhoge.gpl.jp \u2192 127.0.0.1
\nhack.gpl.jp \u2192 127.0.0.1<\/p>\n

\u2461WEB\u306e\u8a2d\u5b9a\u3067\u3001*.gpl.jp \u3092\u540c\u3058WEBROOT\u3092\u898b\u306b\u884c\u304f\u3088\u3046\u8a2d\u5b9a<\/p>\n

\u2462WEBROOT\u306bClassicPress\u3092\u5c55\u958b
\n\u2192wp-config.php \u306eDB\u8a2d\u5b9a
\nDB\u306f\u3082\u3046\u4f5c\u3063\u3066\u3042\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n

\u2463WEB\u30a2\u30af\u30bb\u30b9\u3057\u3066ClassicPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb
\n\u2192\u3000\u666e\u901a\u306b\u30a6\u30a3\u30b6\u30fc\u30c9\u306b\u6cbf\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n

\u2464wp-config.php \u3078\u8a2d\u5b9a\u3092\u8a18\u8f09
\ndefine(‘WP_ALLOW_MULTISITE’, true);<\/p>\n

\u2465\u7ba1\u7406\u753b\u9762\u3078\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30b5\u30a4\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a\u3000\u3078
\n\u2192 \u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u578b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n

\u2466\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u793a\u304c\u51fa\u3066\u304d\u307e\u3059\u3002
\nwp-config.php \u3068 .htaccess\u3078\u6307\u793a\u901a\u308a\u306b\u8a18\u8f09<\/p>\n

————- wp-config.php<\/p>\n

define(‘MULTISITE’, true);
\ndefine(‘SUBDOMAIN_INSTALL’, true);
\ndefine(‘DOMAIN_CURRENT_SITE’, ‘gpl.jp’);
\ndefine(‘PATH_CURRENT_SITE’, ‘\/’);
\ndefine(‘SITE_ID_CURRENT_SITE’, 1);
\ndefine(‘BLOG_ID_CURRENT_SITE’, 1);<\/p><\/blockquote>\n

————- .htaccess<\/p>\n

RewriteEngine On
\nRewriteBase \/
\nRewriteRule ^index\\.php$ – [L]<\/p>\n

# add a trailing slash to \/wp-admin
\nRewriteRule ^wp-admin$ wp-admin\/ [R=301,L]<\/p>\n

RewriteCond %{REQUEST_FILENAME} -f [OR]
\nRewriteCond %{REQUEST_FILENAME} -d
\nRewriteRule ^ – [L]
\nRewriteRule ^(wp-(content|admin|includes).*) $1 [L]
\nRewriteRule ^(.*\\.php)$ $1 [L]
\nRewriteRule . index.php [L]<\/p><\/blockquote>\n

\u2467\u518d\u5ea6\u3001\u30ed\u30b0\u30aa\u30d5\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u30b5\u30a4\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u306e\u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9
\n\u2192 \u8a2d\u5b9a\uff1e\u30b5\u30a4\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u8a2d\u5b9a\u3000\u304b\u3089\u5404\u7a2e\u8a2d\u5b9a
\n\u2192 \u7ba1\u7406\u30e1\u30cb\u30e5\u30fc\u3092\u6709\u52b9\u5316\uff08\u30d7\u30e9\u30b0\u30a4\u30f3\uff09<\/p>\n

\u4ee5\u4e0a\u3067\u3001OK\u3002\u65b0\u898f\u30b5\u30a4\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u3002<\/p>\n

\u2460\u30b5\u30a4\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406\u3000\u304b\u3089\u8ffd\u52a0
\n\u30b5\u30a4\u30c8\uff1e\u65b0\u898f\u8ffd\u52a0\"\u30b5\u30a4\u30c8\u3092\u8ffd\u52a0_\u2039_\u30b5\u30a4\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7ba1\u7406__GPLJP\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30b5\u30a4\u30c8_\u2014_ClassicPress.png\"<\/p>\n

\u4ee5\u4e0a\u3067\u3001\u8907\u6570\u306eClassicPress\u30b5\u30a4\u30c8\u304c\u51fa\u6765\u4e0a\u304c\u308a\u3002\u57fa\u672cWordPress\u3068\u540c\u3058\u3067\u3059\u306d\u3002<\/p>\n

\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u306e\u904b\u7528\u306f\u3044\u308d\u3044\u308d\u52d8\u6240\u304c\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u4e0d\u5b9a\u671f\u306b\u4f55\u304b\u6c17\u304c\u3064\u3044\u305f\u3089\u66f8\u3044\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u7ba1\u7406\u7cfb\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u4fbf\u5229\u305d\u3046\u306a\u306e\u304c\u51fa\u3066\u3044\u308b\u306e\u3067\u4f55\u304b\u898b\u7e55\u3063\u3066\u4f7f\u3063\u3066\u3044\u304f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

https:\/\/ja.wordpress.org\/plugins\/search\/Multisite\/<\/p><\/blockquote>\n

\u6b21\u56de\u306f\u3001\u3068\u308a\u3042\u3048\u305a\u30ed\u30fc\u30ab\u30eb\u306eMAMP\u74b0\u5883\u3067\u4ee5\u4e0b\u3092\u3084\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u30fbMAMP Pro \u74b0\u5883\u3067Let\u2019s Encryt \u306e\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9SSL\u3092\u8a2d\u5b9a<\/p>\n

\u3046\u307e\u304f\u3067\u304d\u308b\u304b\u306a\uff1f<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u3061\u3087\u3063\u3068\u6642\u9593\u304c\u7a7a\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u81ea\u5b85\u30b5\u30fc\u30d0\u3067ClassicPress\u3092\u7acb\u3061\u4e0a\u3052\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d9a\u304d\u3067\u3059\u3002\u30de\u30eb\u30c1\u30b5\u30a4\u30c8\u6a5f\u80fd\u3092\u4f7f\u3063\u3066ClassicPress\u3092\u904b\u7528\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u304c\u3001\u307e\u305a\u306f\u30ed\u30fc\u30ab\u30eb\u306eMAMP Pro […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[14,21,53,83],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"\u3061\u3087\u3063\u3068\u6642\u9593\u304c\u7a7a\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u81ea\u5b85\u30b5\u30fc\u30d0\u3067ClassicPress\u3092\u7acb\u3061\u4e0a\u3052\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7d9a\u304d\u3067\u3059\u3002\u30de…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/5162"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=5162"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/5162\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=5162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=5162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=5162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}