{"id":72,"date":"2023-02-12T21:31:52","date_gmt":"2023-02-12T13:31:52","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=72"},"modified":"2023-02-12T21:32:14","modified_gmt":"2023-02-12T13:32:14","slug":"install-wordpress-woocommerce","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/12\/install-wordpress-woocommerce\/","title":{"rendered":"WordPress\u53caWooCommerce\u5b89\u88c5"},"content":{"rendered":"<p>\u5b98\u7f51\u4e0b\u8f7d\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/wordpress.org\/download\/\">https:\/\/wordpress.org\/download\/<\/a><br \/>\n\u6700\u65b0\u7248\u672c\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/wordpress.org\/latest.tar.gz\">https:\/\/wordpress.org\/latest.tar.gz<\/a><br \/>\nWooCommerce\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/wordpress.org\/plugins\/woocommerce\/\">https:\/\/wordpress.org\/plugins\/woocommerce\/<\/a><\/p>\n<ul>\n<li>\u5b89\u88c5\u6b65\u9aa4\uff1a\u5148\u4f7f\u7528HTTP\u57df\u540d\u5b89\u88c5\uff0c\u518d\u914d\u7f6e\u4e3aHTTPS\u57df\u540d<\/li>\n<li>\u7ba1\u7406\u8def\u5f84\uff1a<code>\/wp-admin<\/code><\/li>\n<li>\u63d2\u4ef6\u76ee\u5f55\uff1a<code>wp-content\/plugins\/<\/code><\/li>\n<li>WooCommerce\u6837\u4f8b\u6570\u636e\uff1a\uff081\uff09Tools Import\uff082\uff09WooCommerce products (CSV)\uff083\uff09Run Importer<\/li>\n<\/ul>\n<h3>\u89e3\u51b3WordPress\u542f\u7528https\u540e\u53f0\u6253\u4e0d\u5f00\uff0ccss\u8def\u5f84\u9519\u8bef\u7684\u95ee\u9898<\/h3>\n<p>WordPress\u540e\u53f0\u8bbe\u7f6e\u5427http\u6539\u6210https\u5730\u5740\u540e\uff0c\u53d1\u73b0\u540e\u53f0\u65e0\u6cd5\u8bbf\u95ee\uff0c\u524d\u53f0css\u4e5f\u52a0\u8f7d\u4e0d\u5168\uff0c\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u6253\u5f00<code>wp-config.php<\/code>\u6587\u4ef6\uff0c\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-php\">$_SERVER[&#039;HTTPS&#039;] = &#039;on&#039;;\ndefine(&#039;FORCE_SSL_LOGIN\u2019, true);\ndefine(&#039;FORCE_SSL_ADMIN\u2019, true);<\/code><\/pre>\n<pre><code class=\"language-php\">define(&#039;FORCE_SSL_ADMIN&#039;, true);\n\/\/ in some setups HTTP_X_FORWARDED_PROTO might contain\n\/\/ a comma-separated list e.g. http,https\n\/\/ so check for https existence\n\/\/ if (strpos($_SERVER[&#039;HTTP_X_FORWARDED_PROTO&#039;], &#039;https&#039;) !== false)\n    $_SERVER[&#039;HTTPS&#039;]=&#039;on&#039;;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u7f51\u4e0b\u8f7d\uff1ahttps:\/\/wordpress.org\/download\/ \u6700\u65b0\u7248\u672c\uff1ahttps:\/\/wordp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[49,48],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-woocommerce","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}