{"id":245,"date":"2022-07-03T14:02:56","date_gmt":"2022-07-03T06:02:56","guid":{"rendered":"https:\/\/wpeyes.com\/wordpress\/?post_type=docs&#038;p=245"},"modified":"2022-07-03T14:03:02","modified_gmt":"2022-07-03T06:03:02","slug":"%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url","status":"publish","type":"docs","link":"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url","title":{"rendered":"\u66f4\u6539\u7ad9\u70b9 URL"},"content":{"rendered":"\n<p>\u5728 WordPress \u5355\u7ad9\u70b9\u5b89\u88c5\u7684\u8bbe\u7f6e -&gt; \u5e38\u89c4\u5c4f\u5e55\u4e0a\uff0c\u6709\u4e24\u4e2a\u5b57\u6bb5\u540d\u4e3a\u201cWordPress \u5730\u5740 (URL)\u201d\u548c\u201c\u7ad9\u70b9\u5730\u5740 (URL)\u201d\u3002\u5b83\u4eec\u662f\u91cd\u8981\u7684\u8bbe\u7f6e\uff0c\u56e0\u4e3a\u5b83\u4eec\u63a7\u5236 WordPress \u7684\u4f4d\u7f6e\u3002\u8fd9\u4e9b\u8bbe\u7f6e\u63a7\u5236\u9875\u9762\u7ba1\u7406\u90e8\u5206\u4ee5\u53ca\u524d\u7aef\u4e2d URL \u7684\u663e\u793a\uff0c\u5e76\u5728\u6574\u4e2a WordPress \u4ee3\u7801\u4e2d\u4f7f\u7528\u3002<\/p>\n\n\n\n<ul><li>\u201c\u7ad9\u70b9\u5730\u5740 (URL)\u201d\u8bbe\u7f6e\u662f\u60a8\u5e0c\u671b\u4eba\u4eec\u5728\u6d4f\u89c8\u5668\u4e2d\u952e\u5165\u4ee5\u8bbf\u95ee\u60a8\u7684 WordPress \u535a\u5ba2\u7684\u5730\u5740\u3002<\/li><li>\u201cWordPress \u5730\u5740 (URL)\u201d \u8bbe\u7f6e\u662f\u60a8\u7684 WordPress \u6838\u5fc3\u6587\u4ef6\u6240\u5728\u7684\u5730\u5740\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u8fd9\u4e24\u4e2a\u8bbe\u7f6e\u90fd\u5e94\u8be5\u5305\u62ec http:\/\/ \u90e8\u5206\uff0c\u5e76\u4e14\u6700\u540e\u4e0d\u5e94\u8be5\u6709\u659c\u7ebf\u201c\/\u201d\u3002<\/p>\n\n\n\n<p>\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u5c31\u4f1a\u6709\u4eba\u53d1\u73b0\u9700\u8981\u624b\u52a8\u66f4\u6539\uff08\u6216\u4fee\u590d\uff09\u8fd9\u4e9b\u8bbe\u7f6e\u3002\u901a\u5e38\uff0c\u5f53\u4ed6\u4eec\u66f4\u6539\u5176\u4e2d\u4e00\u9879\u6216\u4e24\u9879\u5e76\u53d1\u73b0\u4ed6\u4eec\u7684\u7f51\u7ad9\u4e0d\u518d\u6b63\u5e38\u5de5\u4f5c\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002\u8fd9\u4f1a\u4f7f\u7528\u6237\u65e0\u6cd5\u8f7b\u677e\u53d1\u73b0\u7ea0\u6b63\u95ee\u9898\u7684\u65b9\u6cd5\u3002\u672c\u6587\u544a\u8bc9\u60a8\u5982\u4f55\u76f4\u63a5\u66f4\u6539\u8fd9\u4e9b\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p>\u6b64\u5904\u4e3a\u60a8\u5c06 WordPress \u4ece\u4e00\u4e2a\u7ad9\u70b9\u79fb\u52a8\u5230\u53e6\u4e00\u4e2a\u7ad9\u70b9\u7684\u60c5\u51b5\u63d0\u4f9b\u4e86\u5176\u4ed6\u4fe1\u606f\uff0c\u56e0\u4e3a\u8fd9\u4e5f\u9700\u8981\u66f4\u6539\u7ad9\u70b9 URL\u3002\u5982\u679c\u60a8\u53ea\u662f\u5c1d\u8bd5\u66f4\u6b63\u201c\u635f\u574f\u7684\u201d\u7f51\u7ad9\uff0c\u5219\u4e0d\u5e94\u5c1d\u8bd5\u4f7f\u7528\u8fd9\u4e9b\u9644\u52a0\u4fe1\u606f\u3002<\/p>\n\n\n\n<p><strong>\u8b66\u62a5\uff01<\/strong>\u8fd9\u4e9b\u8bf4\u660e\u4ec5\u9002\u7528\u4e8e WordPress \u7684\u5355\u6b21\u5b89\u88c5\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f WordPress MultiSite\uff0c\u5219\u9700\u8981\u624b\u52a8\u7f16\u8f91\u6570\u636e\u5e93\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"changing-the-site-url\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#changing-the-site-url\">\u66f4\u6539\u7ad9\u70b9 URL<\/a><\/h2>\n\n\n\n<p>\u6709\u56db\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\u53ef\u4ee5\u624b\u52a8\u66f4\u6539\u7ad9\u70b9 URL\u3002\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\u7684\u4efb\u4f55\u4e00\u79cd\u90fd\u53ef\u4ee5\u5de5\u4f5c\u5e76\u6267\u884c\u76f8\u540c\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"edit-wp-config-php\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#edit-wp-config-php\">\u7f16\u8f91 wp-config.php<\/a><\/h3>\n\n\n\n<p>\u53ef\u4ee5\u5728<code>wp-config.php<\/code>\u6587\u4ef6\u4e2d\u624b\u52a8\u8bbe\u7f6e\u7ad9\u70b9 URL\u3002<\/p>\n\n\n\n<p>\u5c06\u8fd9\u4e24\u884c\u6dfb\u52a0\u5230\u60a8\u7684 wp-config.php\uff0c\u5176\u4e2d\u201cexample.com\u201d\u662f\u60a8\u7f51\u7ad9\u7684\u6b63\u786e\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>define( <\/code><code>'WP_HOME'<\/code><code>, <\/code><code>'http:\/\/example.com'<\/code> <code>);<\/code><code>define( <\/code><code>'WP_SITEURL'<\/code><code>, <\/code><code>'http:\/\/example.com'<\/code> <code>);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u8fd9\u4e0d\u4e00\u5b9a\u662f\u6700\u597d\u7684\u89e3\u51b3\u65b9\u6cd5\uff0c\u5b83\u53ea\u662f\u5c06\u503c\u786c\u7f16\u7801\u5230\u7ad9\u70b9\u672c\u8eab\u4e2d\u3002\u4f7f\u7528\u6b64\u65b9\u6cd5\u65f6\uff0c\u60a8\u5c06\u65e0\u6cd5\u518d\u5728\u5e38\u89c4\u8bbe\u7f6e\u9875\u9762\u4e0a\u7f16\u8f91\u5b83\u4eec\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"edit-functions-php\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#edit-functions-php\">\u7f16\u8f91functions.php<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/ftp-clients\/\">\u5982\u679c\u60a8\u53ef\u4ee5\u901a\u8fc7FTP<\/a>\u8bbf\u95ee\u8be5\u7ad9\u70b9\uff0c\u90a3\u4e48\u5982\u679c\u60a8\u9519\u8bef\u5730\u66f4\u6539\u4e86\u8fd9\u4e9b\u503c\uff0c\u6b64\u65b9\u6cd5\u5c06\u5e2e\u52a9\u60a8\u5feb\u901f\u6062\u590d\u5e76\u8fd0\u884c\u7ad9\u70b9\u3002<\/p>\n\n\n\n<ol><li>FTP \u5230\u7ad9\u70b9\uff0c\u5e76\u83b7\u53d6\u6d3b\u52a8\u4e3b\u9898<code>functions.php<\/code>\u6587\u4ef6\u7684\u526f\u672c\u3002\u60a8\u5c06\u5728\u4e00\u4e2a\u7b80\u5355\u7684<a href=\"https:\/\/codex.wordpress.org\/Editing_Files#Using_Text_Editors\">\u6587\u672c\u7f16\u8f91\u5668<\/a>\u4e2d\u5bf9\u5176\u8fdb\u884c\u7f16\u8f91\u5e76\u5c06\u5176\u4e0a\u4f20\u56de\u7ad9\u70b9\u3002<\/li><li>\u5c06\u8fd9\u4e24\u884c\u6dfb\u52a0\u5230\u6587\u4ef6\u4e2d\uff0c\u7d27\u8ddf\u5728\u6700\u521d\u7684\u201c&lt;?php\u201d\u884c\u4e4b\u540e\uff1a<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>update_option( <\/code><code>'siteurl'<\/code><code>, <\/code><code>'http:\/\/example.com'<\/code> <code>);<\/code><code>update_option( <\/code><code>'home'<\/code><code>, <\/code><code>'http:\/\/example.com'<\/code> <code>);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u663e\u7136\uff0c\u4f7f\u7528\u60a8\u81ea\u5df1\u7684 URL \u800c\u4e0d\u662f example.com\u3002<\/p>\n\n\n\n<p>3. \u5c06\u6587\u4ef6\u4e0a\u4f20\u56de\u60a8\u7684\u7ad9\u70b9\uff0c\u5728\u540c\u4e00\u4f4d\u7f6e\u3002FileZilla \u63d0\u4f9b\u4e86\u4e00\u4e2a\u65b9\u4fbf\u7684\u201c\u7f16\u8f91\u6587\u4ef6\u201d\u529f\u80fd\uff0c\u53ef\u4ee5\u5feb\u901f\u5b8c\u6210\u4e0a\u8ff0\u6240\u6709\u64cd\u4f5c\uff1b\u5982\u679c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\uff0c\u8bf7\u8fd9\u6837\u505a\u3002<\/p>\n\n\n\n<p>4. \u52a0\u8f7d\u767b\u5f55\u6216\u7ba1\u7406\u9875\u9762\u51e0\u6b21\u3002\u8be5\u7f51\u7ad9\u5e94\u8be5\u4f1a\u6062\u590d\u3002<\/p>\n\n\n\n<p><strong>\u91cd\u8981\u7684\uff01<\/strong>\u4e0d\u8981\u5c06\u6b64\u4ee3\u7801\u7559\u5728<code>functions.php<\/code>\u6587\u4ef6\u4e2d\u3002\u5728\u7ad9\u70b9\u542f\u52a8\u5e76\u518d\u6b21\u8fd0\u884c\u540e\u5c06\u5176\u5220\u9664\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u5982\u679c\u60a8\u7684\u4e3b\u9898\u6ca1\u6709\u6587\u4ef6\uff0c\u8bf7\u4f7f\u7528<a href=\"https:\/\/codex.wordpress.org\/Editing_Files#Using_Text_Editors\">\u6587\u672c\u7f16\u8f91\u5668<\/a><code>functions.php<\/code>\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u3002\u6dfb\u52a0 &lt;?php \u6807\u8bb0\u548c\u4f7f\u7528\u60a8\u81ea\u5df1\u7684 URL \u800c\u4e0d\u662f example.com \u7684\u4e24\u884c\uff1a<a href=\"https:\/\/codex.wordpress.org\/Editing_Files#Using_Text_Editors\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>123<\/td><td><code>&lt;?php<\/code><code>update_option( <\/code><code>'siteurl'<\/code><code>, <\/code><code>'http:\/\/example.com'<\/code> <code>);<\/code><code>update_option( <\/code><code>'home'<\/code><code>, <\/code><code>'http:\/\/example.com'<\/code> <code>);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5c06\u6b64\u6587\u4ef6\u4e0a\u4f20\u5230\u60a8\u7684\u4e3b\u9898\u76ee\u5f55\u3002\u7ad9\u70b9\u542f\u52a8\u5e76\u518d\u6b21\u8fd0\u884c\u540e\uff0c\u5220\u9664\u884c\u6216\u5220\u9664\u6587\u4ef6\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"lan-based-site-to-externally-accessible-site\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#lan-based-site-to-externally-accessible-site\">\u57fa\u4e8e LAN \u7684\u7ad9\u70b9\u5230\u5916\u90e8\u53ef\u8bbf\u95ee\u7684\u7ad9\u70b9<\/a><\/h4>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u989d\u5916\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u53ef\u6307\u5bfc\u60a8\u5c06\u57fa\u4e8e LAN \u7684 WordPress \u7ad9\u70b9\u8f6c\u79fb\u5230\u5916\u90e8\u53ef\u8bbf\u95ee\u7684\u7ad9\u70b9\uff0c\u4ee5\u53ca\u5141\u8bb8\u4ece LAN \u5185\u90e8\u7f16\u8f91 wordpress \u7ad9\u70b9\u3002<\/p>\n\n\n\n<p>\u4e24\u4e2a\u91cd\u8981\u7684\u5173\u952e\u662f\u8def\u7531\u5668\/\u9632\u706b\u5899\u4fee\u6539\u548c\u6700\u540e\u8fdb\u884c\u66f4\u6539\u540e\u7684\u201c\u7b49\u5f85 10 \u5206\u949f\u4ee5\u4e0a\u201d\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528 ssh \u767b\u5f55\u60a8\u7684\u670d\u52a1\u5668\uff08nano \u662f\u670d\u52a1\u5668\u9884\u88c5\u7684\u6587\u672c\u7f16\u8f91\u5668\uff09<\/p>\n\n\n\n<p><code>$ nano \/var\/www\/books\/wp-content\/themes\/twentyeleven\/functions.php<\/code><\/p>\n\n\n\n<p>\u5728 &lt;?php \u4e4b\u540e\u6dfb\u52a0\u884c<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>update_option( <\/code><code>'siteurl'<\/code><code>, <\/code><code>'http:\/\/your.site.url:port\/yourblog'<\/code><code>);<\/code><code>update_option( <\/code><code>'home'<\/code><code>, <\/code><code>'http:\/\/your.site.url:port\/yourblog'<\/code><code>);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4f7f\u7528\u60a8\u7684\u5916\u90e8\u7f51\u7ad9 URL \u5237\u65b0\u60a8\u7684\u7f51\u7edc\u6d4f\u89c8\u5668\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;your.site.url:port\/yourblog<\/code><\/pre>\n\n\n\n<p><code>$ nano \/var\/www\/books\/wp-content\/themes\/twentyeleven\/functions.php<\/code><\/p>\n\n\n\n<p>\u5220\u9664\u60a8\u521a\u521a\u6dfb\u52a0\u7684\u90a3\u4e9b\u884c\uff08\u6216\u5c06\u5b83\u4eec\u6ce8\u91ca\u6389\uff09<\/p>\n\n\n\n<p>\u8bbf\u95ee\u60a8\u7684\u8def\u7531\u5668\uff0c\u8fd9\u4e9b\u6b65\u9aa4\u9002\u7528\u4e8e pfSense\uff0c\u5176\u4ed6\u8def\u7531\u5668\u5e94\u8be5\u6709\u7c7b\u4f3c\u7684\u8bbe\u7f6e\u6765\u5bfb\u627e\/\u6ce8\u610f\uff09<\/p>\n\n\n\n<p>\u5728\u9632\u706b\u5899\/nat \u8868\u4e2d\u6dfb\u52a0\u8fd9\u6837\u7684\u4e00\u884c<\/p>\n\n\n\n<p><code>wan\/tcp\/port\/LAN.server.IP\/80<\/code><\/p>\n\n\n\n<p>\u5728\u9632\u706b\u5899\/\u89c4\u5219\u8868\u4e2d\u6dfb\u52a0\u8fd9\u6837\u7684\u4e00\u884c<\/p>\n\n\n\n<p><code>tcp\/*\/port\/LAN.server.IP\/port\/*<\/code><\/p>\n\n\n\n<p>\u53d6\u6d88\u9009\u4e2d\u7cfb\u7edf\/\u9ad8\u7ea7\/\u7f51\u7edc\u5730\u5740\u8f6c\u6362\/\u7981\u7528 NAT \u53cd\u5c04\u6846<\/p>\n\n\n\n<p><code>\"Disables the automatic creation of NAT redirect rules for access to your public IP addresses from within your internal networks. Note: Reflection only works on port forward type items and does not work for large ranges &gt; 500 ports.\"<\/code>&nbsp;<\/p>\n\n\n\n<p>\u7136\u540e\u53bb\u505a\u5341\u5206\u949f\u7684\u4e8b\u60c5\uff0c\u5f53\u4f60\u56de\u6765\u65f6\uff0c\u770b\u770b\u6765\u81ea LAN \u6d4f\u89c8\u5668\u7684\u5916\u90e8 url http:\/\/your.site.url:port\/yourblog \u662f\u5426\u6b63\u786e\u5730\u6253\u5f00\u4e86\u9875\u9762\u3002&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"relocate-method\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#relocate-method\">\u642c\u8fc1\u65b9\u6cd5<\/a><\/h3>\n\n\n\n<p>WordPress \u652f\u6301\u4e00\u79cd\u81ea\u52a8\u91cd\u5b9a\u4f4d\u65b9\u6cd5\uff0c\u65e8\u5728\u5728\u5c06\u7ad9\u70b9\u4ece\u4e00\u53f0\u670d\u52a1\u5668\u91cd\u5b9a\u4f4d\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u65f6\u5feb\u901f\u5e2e\u52a9\u7ad9\u70b9\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"code-function\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#code-function\">\u4ee3\u7801\u529f\u80fd<\/a><\/h4>\n\n\n\n<p>\u5f53 RELOCATE \u5728<code>wp-config.php<\/code>\uff08\u89c1\u4e0b\u4e00\u7ae0\uff09\u4e2d\u5b9a\u4e49\u4e3a\u771f\u65f6\uff0cwp-login.php \u4e2d\u7684\u4ee5\u4e0b\u4ee3\u7801\u5c06\u91c7\u53d6\u884c\u52a8\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>12345678<\/td><td><code>if<\/code> <code>( defined( <\/code><code>'RELOCATE'<\/code> <code>) AND RELOCATE ) {&nbsp;&nbsp;&nbsp; <\/code><code>&nbsp;&nbsp;<\/code><code>\/\/ Move flag is set<\/code><code>&nbsp;&nbsp;<\/code><code>if<\/code> <code>( isset( <\/code><code>$_SERVER<\/code><code>[<\/code><code>'PATH_INFO'<\/code><code>] ) AND (<\/code><code>$_SERVER<\/code><code>[<\/code><code>'PATH_INFO'<\/code><code>]&nbsp;!= <\/code><code>$_SERVER<\/code><code>[<\/code><code>'PHP_SELF'<\/code><code>]) ) <\/code><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>$_SERVER<\/code><code>[<\/code><code>'PHP_SELF'<\/code><code>] = <\/code><code>str_replace<\/code><code>( <\/code><code>$_SERVER<\/code><code>[<\/code><code>'PATH_INFO'<\/code><code>], <\/code><code>\"\"<\/code><code>, <\/code><code>$_SERVER<\/code><code>[<\/code><code>'PHP_SELF'<\/code><code>] );<\/code><code>&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>$url<\/code> <code>= dirname( set_url_scheme( <\/code><code>'http:\/\/'<\/code><code>. <\/code><code>$_SERVER<\/code><code>[<\/code><code>'HTTP_HOST'<\/code><code>] . <\/code><code>$_SERVER<\/code><code>[<\/code><code>'PHP_SELF'<\/code><code>] ) );<\/code><code>&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>if<\/code> <code>( <\/code><code>$url<\/code>&nbsp;<code>!= get_option( <\/code><code>'siteurl'<\/code> <code>) )<\/code><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>update_option( <\/code><code>'siteurl'<\/code><code>, <\/code><code>$url<\/code> <code>);<\/code><code>}<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"steps\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#steps\">\u811a\u6b65<\/a><\/h4>\n\n\n\n<ol><li>\u7f16\u8f91<code>wp-config.php<\/code>\u6587\u4ef6\u3002<\/li><li>\u5728\u201cdefine\u201d\u8bed\u53e5\u4e4b\u540e\uff08\u5c31\u5728\u201c\u5c31\u662f\u8fd9\u6837\uff0c\u505c\u6b62\u7f16\u8f91\uff01\u201d\u7684\u6ce8\u91ca\u884c<em>\u4e4b\u524d\uff09\uff0c\u63d2\u5165\u4e00\u4e2a\u65b0\u884c\uff0c\u7136\u540e\u952e\u5165\uff1a<\/em><code>define('RELOCATE',true);<\/code><\/li><li>\u4fdd\u5b58\u60a8\u7684 wp-config.php \u6587\u4ef6\u3002<\/li><li>\u6253\u5f00 Web \u6d4f\u89c8\u5668\u5e76\u624b\u52a8\u5c06\u5176\u6307\u5411<code>wp-login.php<\/code>\u65b0\u670d\u52a1\u5668\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u7684\u65b0\u7ad9\u70b9\u4f4d\u4e8e<code>http:\/\/www.yourdomainname.com<\/code>\uff0c\u5219<code>http:\/\/www.yourdomainname.com\/wp-login.php<\/code>\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u4e2d\u952e\u5165\u3002<\/li><li>\u6b63\u5e38\u767b\u5f55\u3002<\/li><li>\u67e5\u770b Web \u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\uff0c\u786e\u8ba4\u60a8\u786e\u5b9e\u767b\u5f55\u5230\u4e86\u6b63\u786e\u7684\u670d\u52a1\u5668\u3002\u5982\u679c\u662f\u8fd9\u79cd\u60c5\u51b5\uff0c\u5219\u5728\u7ba1\u7406\u540e\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230\u8bbe\u7f6e &gt; \u5e38\u89c4\u5e76\u9a8c\u8bc1\u4e24\u4e2a\u5730\u5740\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002\u8bb0\u5f97\u4fdd\u5b58\u66f4\u6539\u3002<\/li><li>\u4fee\u590d\u6b64\u95ee\u9898\u540e\uff0c\u7f16\u8f91<code>wp-config.php<\/code>\u5e76\u5b8c\u5168\u5220\u9664\u60a8\u6dfb\u52a0\u7684\u884c\uff08\u5220\u9664\u6574\u884c\uff09\uff0c\u5c06\u5176\u6ce8\u91ca\u6389\uff08\u4f7f\u7528<code>\/\/<\/code>\uff09\u6216\u5c06<code>true<\/code>\u503c\u66f4\u6539\u4e3a<code>false<\/code>\u5982\u679c\u60a8\u8ba4\u4e3a\u60a8\u53ef\u80fd\u4f1a\u518d\u6b21\u91cd\u65b0\u5b9a\u4f4d\u3002<\/li><\/ol>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u5f53 RELOCATE \u6807\u5fd7\u8bbe\u7f6e\u4e3a true \u65f6\uff0c\u7ad9\u70b9 URL \u5c06\u81ea\u52a8\u66f4\u65b0\u4e3a\u60a8\u7528\u4e8e\u8bbf\u95ee\u767b\u5f55\u5c4f\u5e55\u7684\u4efb\u4f55\u8def\u5f84\u3002\u8fd9\u5c06\u4f7f\u7ba1\u7406\u90e8\u5206\u5728\u65b0 URL \u4e0a\u542f\u52a8\u5e76\u8fd0\u884c\uff0c\u4f46\u4e0d\u4f1a\u66f4\u6b63\u8bbe\u7f6e\u7684\u4efb\u4f55\u5176\u4ed6\u90e8\u5206\u3002\u60a8\u4ecd\u7136\u9700\u8981\u624b\u52a8\u66f4\u6539\u8fd9\u4e9b\u5185\u5bb9\u3002&nbsp;<\/p>\n\n\n\n<p><strong>\u91cd\u8981\u7684\uff01<\/strong>\u5728 wp-config.php \u6587\u4ef6\u4e2d\u4fdd\u7559 RELOCATE \u5e38\u91cf\u662f\u4e0d\u5b89\u5168\u7684\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u653b\u51fb\u8005\u5728\u67d0\u4e9b\u914d\u7f6e\u4e2d\u5c06\u60a8\u7684\u7ad9\u70b9 URL \u66f4\u6539\u4e3a\u4ed6\u4eec\u60f3\u8981\u7684\u4efb\u4f55\u5185\u5bb9\u3002\u5b8c\u6210\u540e\uff0c\u8bf7\u52a1\u5fc5\u4ece wp-config.php \u4e2d\u5220\u9664 RELOCATE \u884c\u3002&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"changing-the-url-directly-in-the-database\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#changing-the-url-directly-in-the-database\">\u76f4\u63a5\u5728\u6570\u636e\u5e93\u4e2d\u66f4\u6539 URL<\/a><\/h3>\n\n\n\n<p>\u5982\u679c\u60a8\u77e5\u9053\u5982\u4f55\u5728\u60a8\u7684\u4e3b\u673a\u4e0a\u8bbf\u95ee phpMyAdmin\uff0c\u90a3\u4e48\u60a8\u53ef\u4ee5\u76f4\u63a5\u7f16\u8f91\u8fd9\u4e9b\u503c\u4ee5\u4f7f\u60a8\u7684\u7ad9\u70b9\u91cd\u65b0\u542f\u52a8\u5e76\u8fd0\u884c\u3002<\/p>\n\n\n\n<ol><li><a href=\"https:\/\/wordpress.org\/support\/article\/backing-up-your-database\/\">\u5907\u4efd\u60a8\u7684\u6570\u636e\u5e93<\/a>\u5e76\u5728\u5f02\u5730\u4fdd\u5b58\u526f\u672c\u3002<\/li><li>\u767b\u5f55\u5230<a href=\"https:\/\/wordpress.org\/support\/article\/phpmyadmin\/\">phpMyAdmin<\/a>\u3002<\/li><li>\u5355\u51fb\u6307\u5411\u60a8\u7684<strong>\u6570\u636e\u5e93<\/strong>\u7684\u94fe\u63a5\u3002<\/li><li>\u5c06\u51fa\u73b0\u60a8\u7684\u6570\u636e\u5e93\u5217\u8868\u3002\u9009\u62e9\u60a8\u7684 WordPress \u6570\u636e\u5e93\u3002<\/li><li>\u6570\u636e\u5e93\u4e2d\u7684\u6240\u6709\u8868\u90fd\u5c06\u51fa\u73b0\u5728\u5c4f\u5e55\u4e0a\u3002<\/li><li>\u4ece\u5217\u8868\u4e2d\u67e5\u627e<strong><code>wp_options<\/code><\/strong>\u3002<strong>\u6ce8\u610f\uff1a<\/strong><code>wp_<\/code>\u5982\u679c\u5b89\u88c5\u65f6\u66f4\u6539\u4e86\u8868\u524d\u7f00\uff0c\u53ef\u80fd\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/li><li>\u5355\u51fb\u6307\u793a\u4e3a<strong>Browse<\/strong>\u7684\u5c0f\u56fe\u6807\u3002<\/li><li>\u5c06\u6253\u5f00\u4e00\u4e2a\u5c4f\u5e55\uff0c\u5176\u4e2d\u5305\u542b\u8868\u4e2d\u7684\u5b57\u6bb5<strong><code>wp_options<\/code><\/strong>\u5217\u8868\u3002<\/li><li>\u5728\u8be5\u5b57\u6bb5\u4e0b<strong><code>option_name<\/code><\/strong>\uff0c\u5411\u4e0b\u6eda\u52a8\u5e76\u67e5\u627e<strong><code>siteurl<\/code><\/strong>\u3002<\/li><li>\u5355\u51fb\u901a\u5e38\u4f4d\u4e8e\u884c\u9996\u6700\u5de6\u4fa7\u7684\u201c<strong>\u7f16\u8f91\u5b57\u6bb5\u201d\u56fe\u6807\u3002<\/strong><\/li><li>\u5c06\u51fa\u73b0\u201c<strong>\u7f16\u8f91\u5b57\u6bb5<\/strong>\u201d\u7a97\u53e3\u3002<\/li><li>\u5728 \u7684\u8f93\u5165\u6846\u4e2d<strong><code>option_value<\/code><\/strong>\uff0c\u5c0f\u5fc3\u5730\u5c06 URL \u4fe1\u606f\u66f4\u6539\u4e3a\u65b0\u5730\u5740\u3002<\/li><li>\u9a8c\u8bc1\u8fd9\u662f\u6b63\u786e\u7684\uff0c\u7136\u540e\u5355\u51fb<strong>\u6267\u884c<\/strong>\u4ee5\u4fdd\u5b58\u4fe1\u606f\u3002<\/li><li>\u4f60\u5e94\u8be5\u56de\u5230\u4f60\u7684<strong><code>wp_options<\/code><\/strong>\u684c\u5b50\u4e0a\u3002<\/li><li>\u5728\u8868\u4e2d\u67e5\u627e<strong><code>home<\/code><\/strong>\u5b57\u6bb5\uff0c\u7136\u540e\u5355\u51fb<strong>\u7f16\u8f91\u5b57\u6bb5<\/strong>\u3002<strong>\u6ce8\u610f<\/strong>\u91cc\u9762\u6709\u51e0\u9875\u8868\u683c<code>wp_options<\/code>\u3002\u5bfb\u627e<code>&gt;<\/code>\u7b26\u53f7\u6765\u7ffb\u9605\u5b83\u4eec\u3002<\/li><li>\u5728 \u7684\u8f93\u5165\u6846\u4e2d<strong><code>option_value<\/code><\/strong>\uff0c\u5c0f\u5fc3\u5730\u5c06 URL \u4fe1\u606f\u66f4\u6539\u4e3a\u65b0\u5730\u5740\u3002<\/li><li>\u9a8c\u8bc1\u8fd9\u662f\u6b63\u786e\u7684\uff0c\u7136\u540e\u5355\u51fb<strong>\u6267\u884c<\/strong>\u4ee5\u4fdd\u5b58\u4fe1\u606f\u3002<\/li><\/ol>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"moving-sites\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#moving-sites\">\u79fb\u52a8\u7ad9\u70b9<\/a><\/h2>\n\n\n\n<p>\u5728\u5c06\u7ad9\u70b9\u4ece\u4e00\u4e2a\u4f4d\u7f6e\u79fb\u52a8\u5230\u53e6\u4e00\u4e2a\u4f4d\u7f6e\u65f6\uff0c\u6709\u65f6\u9700\u8981\u624b\u52a8\u4fee\u6539\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u4ee5\u6b63\u786e\u8bc6\u522b\u65b0\u7ad9\u70b9\u7684 URL \u4fe1\u606f\u3002\u6709\u8bb8\u591a\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u901a\u5e38\u5e94\u8be5\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u800c\u4e0d\u662f\u624b\u52a8\u4fee\u6539\u3002<\/p>\n\n\n\n<p>\u6b64\u5904\u4ec5\u4f5c\u4e3a\u4fe1\u606f\u63d0\u4f9b\u3002\u6b64\u6570\u636e\u53ef\u80fd\u4e0d\u5b8c\u6574\u6216\u4e0d\u51c6\u786e\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u5c1d\u8bd5\u5c06 WordPress \u4ece\u4e00\u4e2a\u7cfb\u7edf\u79fb\u52a8\u5230\u53e6\u4e00\u4e2a\u7cfb\u7edf\uff0c&nbsp;\u60a8\u5e94\u8be5\u9996\u5148\u9605\u8bfb<a href=\"https:\/\/wordpress.org\/support\/article\/moving-wordpress\/\">\u79fb\u52a8 WordPress\u6587\u7ae0\u3002<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"altering-table-prefixes\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#altering-table-prefixes\">\u66f4\u6539\u8868\u524d\u7f00<\/a><\/h3>\n\n\n\n<p>\u50cf\u8bb8\u591a WordPress \u7ba1\u7406\u5458\u4e00\u6837\uff0c\u60a8\u53ef\u80fd\u4f7f\u7528\u5404\u79cd<code>wp-config.php<\/code>hack \u5728\u4e00\u4e2a\u6570\u636e\u5e93\u4e0a\u8fd0\u884c\u591a\u4e2a WordPress \u5b89\u88c5\u3002\u5176\u4e2d\u8bb8\u591a\u6280\u5de7\u90fd\u6d89\u53ca\u52a8\u6001\u8bbe\u7f6e\u8868\u524d\u7f00\uff0c\u5982\u679c\u60a8\u6700\u7ec8\u66f4\u6539\u4e86\u8868\u524d\u7f00\uff0c\u5219\u8fd8<em>\u5fc5\u987b\u66f4\u65b0<\/em><em>prefix_usermeta<\/em>\u8868\u4e2d\u7684\u51e0\u4e2a\u6761\u76ee\u3002<\/p>\n\n\n\n<p>\u4e0e\u4e0a\u4e00\u8282\u4e00\u6837\uff0c\u8bf7\u8bb0\u4f4f SQL \u66f4\u6539\u662f\u6c38\u4e45\u6027\u7684\uff0c\u56e0\u6b64\u60a8\u5e94\u8be5\u9996\u5148\u5907\u4efd\u6570\u636e\u5e93\uff1a&nbsp;<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u8981\u66f4\u6539\u7ad9\u70b9\u7684\u8868\u524d\u7f00\uff0c\u8bf7\u8bb0\u4f4f\u4e5f\u8981\u66f4\u6539 usermeta \u8868\u4e2d\u7684\u8868\u524d\u7f00\u3002\u8fd9\u5c06\u5141\u8bb8\u65b0\u7ad9\u70b9\u6b63\u786e\u8bc6\u522b\u65e7\u7ad9\u70b9\u7684\u7528\u6237\u6743\u9650\u3002&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>UPDATE<\/code> <code>`newprefix_usermeta` <\/code><code>SET<\/code> <code>`meta_key` = <\/code><code>REPLACE<\/code><code>( `meta_key` , <\/code><code>'oldprefix_'<\/code><code>, <\/code><code>'newprefix_'<\/code> <code>);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"changing-template-files\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#changing-template-files\">\u66f4\u6539\u6a21\u677f\u6587\u4ef6<\/a><\/h3>\n\n\n\n<p>\u5728\u60a8\u7684<a href=\"https:\/\/wordpress.org\/support\/article\/using-themes\/\">WordPress \u4e3b\u9898<\/a>\u4e2d\uff0c\u6253\u5f00\u6bcf\u4e2a\u6a21\u677f\u6587\u4ef6\u5e76\u641c\u7d22\u4efb\u4f55\u624b\u52a8\u8f93\u5165\u7684\u5bf9\u65e7\u57df\u540d\u7684\u5f15\u7528\u5e76\u5c06\u5176\u66ff\u6362\u4e3a\u65b0\u57df\u540d\u3002\u67e5\u627e\u60a8\u53ef\u80fd\u5728\u5404\u79cd\u6a21\u677f\u6587\u4ef6\uff08\u4f8b\u5982<code>sidebar.php<\/code>\u548c<code>footer.php<\/code>.&nbsp;WordPress \u4f7f\u7528\u4e00\u4e2a\u540d\u4e3a\u7684\u6a21\u677f\u6807\u7b7e\uff0c\u6839\u636e\u5728\u201c<a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/\">\u7ba1\u7406<\/a>\u201d &gt;&nbsp;<a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/#general\">\u201c\u8bbe\u7f6e\u201d<\/a>&nbsp;&gt; \u201c<a href=\"https:\/\/wordpress.org\/support\/article\/settings-general-screen\/\">\u5e38\u89c4<\/a>\u201d\u9762\u677f<code><a href=\"https:\/\/codex.wordpress.org\/Template_Tags\/bloginfo\">bloginfo()<\/a><\/code>\u4e2d\u8f93\u5165\u7684\u4fe1\u606f\u81ea\u52a8\u751f\u6210\u60a8\u7684\u7ad9\u70b9\u5730\u5740\u3002\u4e0d\u5fc5\u4fee\u6539\u6a21\u677f\u6587\u4ef6\u4e2d\u7684\u6807\u7b7e\u3002&nbsp;<a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/\"><\/a><a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/#general\"><\/a><a href=\"https:\/\/wordpress.org\/support\/article\/settings-general-screen\/\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"changing-the-config-file\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#changing-the-config-file\">\u66f4\u6539\u914d\u7f6e\u6587\u4ef6<\/a><\/h3>\n\n\n\n<p>\u5982\u679c\u60a8\u7684\u6570\u636e\u5e93\u4ee5\u67d0\u4e9b\u65b9\u5f0f\u79fb\u52a8\u6216\u66f4\u6539\uff0c\u60a8\u5c06\u9700\u8981\u66f4\u65b0\u60a8\u7684 WordPress \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n\n\n\n<ol><li>\u60a8\u53ea\u9700\u5728\u4ee5\u4e0b\u60c5\u51b5\u4e0b\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1a<ol><li>\u60a8\u7684\u6570\u636e\u5e93\u5df2\u79fb\u81f3\u53e6\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u672a\u5728\u60a8\u7684\u670d\u52a1\u5668\u4e0a\u8fd0\u884c<code>localhost<\/code><\/li><li>\u60a8\u5df2\u91cd\u547d\u540d\u6570\u636e\u5e93<\/li><li>\u60a8\u5df2\u66f4\u6539\u6570\u636e\u5e93\u7528\u6237\u540d<\/li><\/ol><\/li><li>\u5236\u4f5c\u6587\u4ef6\u7684\u5907\u4efd\u526f\u672c<code>wp-config.php<\/code>\u3002<\/li><li><a href=\"https:\/\/codex.wordpress.org\/Glossary#Text_editor\">\u5728\u6587\u672c\u7f16\u8f91\u5668<\/a>\u4e2d\u6253\u5f00<code>wp-config.php<\/code>\u6587\u4ef6\u3002<a href=\"https:\/\/codex.wordpress.org\/Glossary#Text_editor\"><\/a><\/li><li>\u67e5\u770b\u5176\u5185\u5bb9\u3002\u7279\u522b\u662f\uff0c\u60a8\u6b63\u5728\u5bfb\u627e<a href=\"https:\/\/wordpress.org\/support\/article\/editing-wp-config-php\/#set-database-host\">\u6570\u636e\u5e93\u4e3b\u673a\u6761\u76ee<\/a>\u3002<\/li><li>\u4fdd\u5b58\u6587\u4ef6\u3002<\/li><\/ol>\n\n\n\n<p>\u6b64\u65f6\uff0c\u60a8\u7684 WordPress \u535a\u5ba2\u5e94\u8be5\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u4e86\u3002 &nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"verify-the-profile\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#verify-the-profile\">\u9a8c\u8bc1\u914d\u7f6e\u6587\u4ef6<\/a><\/h3>\n\n\n\n<ol><li>\u5728\u60a8\u7684&nbsp;<a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/\">\u7ba1\u7406<\/a>&nbsp;&gt;&nbsp;<a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/#general\">\u8bbe\u7f6e<\/a>&nbsp;&gt;&nbsp;<a href=\"https:\/\/wordpress.org\/support\/article\/settings-general-screen\/\">\u5e38\u89c4<\/a>&nbsp;\u9762\u677f\u4e2d\uff0c\u60a8\u5c06\u9a8c\u8bc1\u60a8\u5728\u4e0a\u9762\u66f4\u6539 URL \u4e2d\u6240\u505a\u7684\u66f4\u6539\u662f\u5426\u6b63\u786e\u3002<\/li><li>\u9a8c\u8bc1\u60a8\u7684<strong>WordPress \u5730\u5740 (URL)<\/strong>\u4e2d\u7684\u5f15\u7528\u662f\u5426\u5305\u542b\u65b0\u5730\u5740\u3002<\/li><li>\u9a8c\u8bc1\u60a8\u7684<strong>\u7ad9\u70b9\u5730\u5740 (URL)<\/strong>\u4e2d\u7684\u5f15\u7528\u662f\u5426\u5305\u542b\u65b0\u5730\u5740\u3002<\/li><li>\u5982\u679c\u60a8\u8fdb\u884c\u4e86\u66f4\u6539\uff0c\u8bf7\u5355\u51fb<strong>\u4fdd\u5b58\u66f4\u6539<\/strong>\u3002<\/li><\/ol>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"changing-the-htaccess-file\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#changing-the-htaccess-file\">\u66f4\u6539 .htaccess \u6587\u4ef6<\/a><\/h3>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/\">\u5728\u201c\u7ba1\u7406<\/a>\u201d &gt;&nbsp;<a href=\"https:\/\/wordpress.org\/support\/article\/administration-screens\/#general\">\u201c\u8bbe\u7f6e\u201d<\/a>&nbsp;&gt; \u201c<a href=\"https:\/\/wordpress.org\/support\/article\/settings-general-screen\/\">\u5e38\u89c4<\/a>\u201d\u9762\u677f\u4e2d\u66f4\u6539\u4fe1\u606f\u540e\uff0c<code>.htaccess<\/code>\u5982\u679c\u60a8\u4f7f\u7528<a href=\"https:\/\/wordpress.org\/support\/article\/using-permalinks\/\">\u6c38\u4e45\u94fe\u63a5<\/a>\u6216\u4efb\u4f55\u91cd\u5199\u6216\u91cd\u5b9a\u5411&nbsp;\uff0c\u5219\u9700\u8981\u66f4\u65b0\u6587\u4ef6\u3002<\/p>\n\n\n\n<ol><li><strong>\u5236\u4f5c\u6587\u4ef6\u7684\u5907\u4efd\u526f\u672c<code>.htaccess<\/code>\u3002<\/strong>\u8fd9\u4e0d\u662f\u5efa\u8bae\uff0c\u800c\u662f\u8981\u6c42\u3002<\/li><li><a href=\"https:\/\/wordpress.org\/support\/article\/glossary\/#text-editor\">\u5728\u6587\u672c\u7f16\u8f91\u5668<\/a>\u4e2d\u6253\u5f00<code>.htaccess<\/code>\u6587\u4ef6\u3002<a href=\"https:\/\/wordpress.org\/support\/article\/glossary\/#text-editor\"><\/a><\/li><li>\u67e5\u770b\u5176\u5185\u5bb9\uff0c\u67e5\u627e\u60a8\u8f93\u5165\u7684\u4efb\u4f55\u81ea\u5b9a\u4e49\u91cd\u5199\u6216\u91cd\u5b9a\u5411\u3002<strong>\u5c06<\/strong>\u8fd9\u4e9b\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4ee5\u5b89\u5168\u4fdd\u5b58\u3002<\/li><li>\u5173\u95ed\u6587\u4ef6\u3002<\/li><li>\u6309\u7167\u6c38\u4e45\u94fe\u63a5\u5b50\u9762\u677f\u4e0a\u7684\u8bf4\u660e\u66f4\u65b0\u6587\u4ef6\u7684\u6c38\u4e45\u94fe\u63a5<code>.htaccess<\/code>\u3002<\/li><li>\u6253\u5f00\u65b0<code>.htaccess<\/code>\u6587\u4ef6\u5e76\u68c0\u67e5\u60a8\u7684\u81ea\u5b9a\u4e49\u91cd\u5199\u548c\u91cd\u5b9a\u5411\u662f\u5426\u4ecd\u7136\u5b58\u5728\u3002\u5982\u679c\u6ca1\u6709\uff0c\u8bf7\u4ece\u4fdd\u5b58\u7684\u6587\u4ef6\u4e2d\u590d\u5236\u5b83\u4eec\u5e76\u5c06\u5b83\u4eec\u7c98\u8d34\u5230\u65b0\u7684 .htaccess \u6587\u4ef6\u4e2d\u3002<\/li><li>\u5728\u8fd9\u4e9b\u81ea\u5b9a\u4e49\u91cd\u5199\u548c\u91cd\u5b9a\u5411\u4e2d\u8fdb\u884c\u4efb\u4f55\u5fc5\u8981\u7684\u66f4\u6539\u4ee5\u53cd\u6620\u65b0\u7684\u7ad9\u70b9\u5730\u5740\u3002<\/li><li>\u4fdd\u5b58\u6587\u4ef6\u3002<\/li><li>\u6d4b\u8bd5\u8fd9\u4e9b\u91cd\u5b9a\u5411\u4ee5\u786e\u4fdd\u5b83\u4eec\u6b63\u5e38\u5de5\u4f5c\u3002<\/li><\/ol>\n\n\n\n<p>\u5982\u679c\u60a8\u72af\u4e86\u9519\u8bef\uff0c\u60a8\u53ef\u4ee5<a href=\"https:\/\/wordpress.org\/support\/article\/restoring-your-database-from-backup\/\">\u4ece\u5907\u4efd\u4e2d\u6062\u590d\u60a8\u7684\u6570\u636e\u5e93<\/a>\uff0c\u7136\u540e\u518d\u8bd5\u4e00\u6b21\u3002\u6240\u4ee5\u7b2c\u4e00\u6b21\u786e\u4fdd\u5b83\u662f\u6b63\u786e\u7684\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"additional-items-of-note\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#additional-items-of-note\">\u989d\u5916\u6ce8\u610f\u4e8b\u9879<\/a><\/h3>\n\n\n\n<p>\u4e3a\u4e86\u5728\u79fb\u52a8\u7ad9\u70b9\u65f6\u66f4\u6b63 URL\uff0c\u60a8\u53ef\u80fd\u5e0c\u671b\u66f4\u6539\u5176\u4ed6\u4e00\u4e9b\u5185\u5bb9\u3002<\/p>\n\n\n\n<ol><li>\u56fe\u7247\u94fe\u63a5\uff1a\u56fe\u7247\u94fe\u63a5\u5b58\u50a8\u5728 wp_posts \u8868\u7684\u201cpost_content\u201d\u4e2d\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e0a\u9762\u7684\u7c7b\u4f3c\u4ee3\u7801\u6765\u66f4\u65b0\u56fe\u50cf\u94fe\u63a5\u3002<\/li><li>wp_options\uff1a\u9664\u4e86\u4e0a\u9762\u63d0\u5230\u7684\u201csiteurl\u201d\u548c\u201chome\u201d\u9879\u5916\uff0c\u8fd8\u6709\u5176\u4ed6option_value\u4e5f\u9700\u8981\u4fee\u6539\uff0c\u4f8b\u5982\u201c\u4e0a\u4f20\u8def\u5f84\u201d\uff0c\u4ee5\u53ca\u4e00\u4e9b\u63d2\u4ef6\u9879\uff08\u53d6\u51b3\u4e8e\u60a8\u5b89\u88c5\u7684\u5185\u5bb9\uff0c\u4f8b\u5982widgets\u3001stats\u3001 DMSGuestbook\u3001\u7ad9\u70b9\u5730\u56fe\u7b49\uff09<\/li><li>\u8981\u4fee\u590d\u5305\u542b\u8fc7\u65f6 URL \u7684\u5c0f\u90e8\u4ef6\uff0c\u60a8\u53ef\u4ee5\u5728\u4eea\u8868\u677f\/\u5916\u89c2\/\u5c0f\u90e8\u4ef6\u4e2d\u7f16\u8f91\u5b83\u4eec\u3002<\/li><li>\u5bf9\u5269\u4e0b\u7684\u4efb\u4f55\u9879\u76ee\u8fdb\u884c\u5b8c\u6574\u7684\u6570\u636e\u5e93\u641c\u7d22\u3002\u786e\u4fdd\u4f60\u77e5\u9053\u4f60\u6b63\u5728\u6539\u53d8\u4ec0\u4e48\u3002\u5e76\u4ed4\u7ec6\u68c0\u67e5\u6bcf\u4e2a\u9879\u76ee\u662f\u5426\u5b58\u5728\u4e0d\u5f53\u66f4\u6362\u3002<\/li><li>\u5982\u679c\u60a8\u6b63\u5728\u8fd0\u884c\u4e00\u4e2a\u7f51\u7edc\/\u6709\u591a\u4e2a\u7ad9\u70b9\uff0c\u5219\u9700\u8981\u66ff\u6362\u6570\u636e\u5e93\u4e2d URL \u7684\u5b9e\u4f8b\u3002\u5b83\u4eec\u5b58\u50a8\u5728\u8bb8\u591a\u8868\u4e2d\uff0c\u5305\u62ec\u6bcf\u4e2a\u7ad9\u70b9\uff08\u535a\u5ba2\uff09\u3002\u66ff\u6362\u65f6\u8981\u5c0f\u5fc3\uff0c\u5e76\u786e\u4fdd\u5728\u66f4\u6539\u4e4b\u524d\u77e5\u9053\u8be5\u5b57\u6bb5\u7684\u542b\u4e49\u3002\u8bf7\u53c2\u9605\u4e0b\u9762\u7684\u91cd\u8981 GUID \u8bf4\u660e\uff0c\u4e86\u89e3<em>\u4e0d\u8981<\/em>\u66f4\u6539\u7684\u793a\u4f8b\u3002<\/li><li>\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u5728\u201cdashboard_incoming_links\u201d\u4e0b\u7684\u6570\u636e\u5e93\u9009\u9879\u8868\u4e2d\u627e\u5230\u60a8\u7684\u65e7\u7f51\u5740\uff0c\u60a8\u53ef\u4ee5\u5ffd\u7565\u6216\u5220\u9664\u8be5\u9009\u9879\u3002\u4ece WP 3.8 \u5f00\u59cb\u5c31\u6ca1\u6709\u4f7f\u7528\u8fc7\u3002<\/li><\/ol>\n\n\n\n<p>\u4f7f\u7528\u5bfc\u51fa\/\u5bfc\u5165\u529f\u80fd\u5c06\u535a\u5ba2\u79fb\u81f3\u65b0\u57df\u3002&nbsp;<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"important-guid-note\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#important-guid-note\">\u91cd\u8981\u7684 GUID \u8bf4\u660e<\/a><\/h4>\n\n\n\n<p>\u6267\u884c\u4e0a\u8ff0\u64cd\u4f5c\u5e76\u76f4\u63a5\u5728\u6570\u636e\u5e93\u4e2d\u66f4\u6539 URL \u65f6\uff0c\u60a8\u4f1a\u9047\u5230\u4f4d\u4e8e<code>wp_posts<\/code>\u8868\u4e2d\u201cguid\u201d\u5217\u4e2d\u7684 URL \u5b9e\u4f8b\u3002<strong><em>\u8bf7\u52ff<\/em><\/strong><strong>\u66f4\u6539\u6b64\u5b57\u6bb5\u7684\u5185\u5bb9\uff0c\u8fd9<\/strong><strong>\u4e00\u70b9\u81f3\u5173\u91cd\u8981\u3002<em><\/em><\/strong>&nbsp; &nbsp;<\/p>\n\n\n\n<p>\u672f\u8bed\u201cGUID\u201d\u4ee3\u8868\u201c\u5168\u7403\u552f\u4e00\u6807\u8bc6\u7b26\u201d\u3002\u5b83\u662f\u4e00\u4e2a\u5b57\u6bb5\uff0c\u65e8\u5728\u4fdd\u5b58\u5e16\u5b50\u7684\u6807\u8bc6\u7b26\uff0c\u5b83 a) \u5728\u6574\u4e2a\u7a7a\u95f4\u548c\u65f6\u95f4\u4e2d\u662f\u552f\u4e00\u7684\uff0c\u5e76\u4e14 b) \u6c38\u8fdc\u4e0d\u4f1a\u6539\u53d8\u3002GUID \u5b57\u6bb5\u4e3b\u8981\u7528\u4e8e\u521b\u5efa WordPress \u63d0\u8981\u3002&nbsp;<\/p>\n\n\n\n<p>\u5f53\u63d0\u8981\u9605\u8bfb\u5668\u9605\u8bfb\u63d0\u8981\u65f6\uff0c\u5b83\u4f7f\u7528 GUID \u5b57\u6bb5\u7684\u5185\u5bb9\u6765\u4e86\u89e3\u200b\u200b\u5b83\u4e4b\u524d\u662f\u5426\u663e\u793a\u8fc7\u7279\u5b9a\u9879\u76ee\u3002\u5b83\u4ee5\u591a\u79cd\u65b9\u5f0f\u4e4b\u4e00\u6267\u884c\u6b64\u64cd\u4f5c\uff0c\u4f46\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u7b80\u5355\u5730\u5b58\u50a8\u5b83\u5df2\u7ecf\u663e\u793a\u5e76\u201c\u6807\u8bb0\u4e3a\u5df2\u8bfb\u201d\u6216\u7c7b\u4f3c\u7684 GUID \u5217\u8868\u3002&nbsp;<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u66f4\u6539 GUID \u5c06\u610f\u5473\u7740\u8bb8\u591a\u63d0\u8981\u9605\u8bfb\u5668\u4f1a\u7a81\u7136\u5c06\u60a8\u7684\u5185\u5bb9\u518d\u6b21\u663e\u793a\u5728\u7528\u6237\u7684\u9605\u8bfb\u5668\u4e2d\uff0c\u5c31\u597d\u50cf\u5b83\u662f\u65b0\u5185\u5bb9\u4e00\u6837\uff0c\u53ef\u80fd\u4f1a\u60f9\u607c\u60a8\u7684\u7528\u6237\u3002&nbsp;<\/p>\n\n\n\n<p>\u4e3a\u4e86\u4f7f GUID \u5b57\u6bb5\u201c\u5168\u5c40\u201d\u552f\u4e00\uff0c\u4f7f\u7528 URL \u6216 URL \u7684\u67d0\u79cd\u8868\u793a\u662f\u516c\u8ba4\u7684\u7ea6\u5b9a\u3002\u56e0\u6b64\uff0c\u5982\u679c\u60a8\u62e5\u6709 example.com\uff0c\u90a3\u4e48\u60a8\u662f\u552f\u4e00\u4f7f\u7528 example.com \u7684\u4eba\uff0c\u56e0\u6b64\u5b83\u5bf9\u60a8\u548c\u60a8\u7684\u7f51\u7ad9\u90fd\u662f\u72ec\u4e00\u65e0\u4e8c\u7684\u3002\u8fd9\u5c31\u662f WordPress \u4f7f\u7528\u6c38\u4e45\u94fe\u63a5\u6216\u5176\u67d0\u79cd\u5f62\u5f0f\u4f5c\u4e3a GUID \u7684\u539f\u56e0\u3002&nbsp;<\/p>\n\n\n\n<p>\u4f46\u662f\uff0c\u7b2c\u4e8c\u90e8\u5206\u662f GUID \u7edd<em>\u4e0d\u80fd<\/em>\u66f4\u6539\u3002\u5373\u4f7f\u60a8\u8f6c\u79fb\u57df\uff0c\u5e16\u5b50\u4ecd\u7136\u662f\u76f8\u540c\u7684\u5e16\u5b50\uff0c\u5373\u4f7f\u5728\u65b0\u4f4d\u7f6e\u4e5f\u662f\u5982\u6b64\u3002\u5f53\u60a8\u66f4\u6539 URL \u65f6\uff0c\u88ab\u8f6c\u79fb\u5230\u65b0\u63d0\u8981\u7684\u63d0\u8981\u9605\u8bfb\u5668\u5e94\u8be5\u4ecd\u7136\u77e5\u9053\u4ed6\u4eec\u4e4b\u524d\u5df2\u7ecf\u9605\u8bfb\u8fc7\u60a8\u7684\u4e00\u4e9b\u5e16\u5b50\uff0c\u56e0\u6b64 GUID<strong>\u5fc5\u987b<\/strong>\u4fdd\u6301\u4e0d\u53d8\u3002&nbsp;<\/p>\n\n\n\n<p><strong>\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\u90fd\u4e0d\u8981\u66f4\u6539 GUID \u5217\u7684\u5185\u5bb9\u3002<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u9700\u8981\u5c06\u9ed8\u8ba4\u4e0a\u4f20\u6587\u4ef6\u5939\u66f4\u6539\u4e3a\u5176\u4ed6\u4f4d\u7f6e\uff0c\u5219\u9700\u8981\u66f4\u6539\u5e16\u5b50\u8868\u7684<strong>post_content<\/strong>\u5217\u4e2d\u7684\u4efb\u4f55\u5a92\u4f53 URL\u3002\u4f8b\u5982\uff0c\u5982\u679c\u9ed8\u8ba4\u4e0a\u4f20\u6587\u4ef6\u5939\u4ece<strong>wp-content\/uploads<\/strong>\u66f4\u6539\u4e3a<strong>images<\/strong>\uff1a&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>UPDATE<\/code> <code>wp_posts <\/code><code>SET<\/code> <code>post_content = <\/code><code>REPLACE<\/code><code>(post_content,<\/code><code>'www.domain.com\/wp-content\/uploads'<\/code><code>,<\/code><code>'www.domain.com\/images'<\/code><code>);<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"multi-site-notes\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#multi-site-notes\">\u591a\u7ad9\u70b9\u6ce8\u91ca<\/a><\/h3>\n\n\n\n<p>\u8bf7\u53c2\u9605<a href=\"https:\/\/wordpress.org\/support\/article\/moving-wordpress\/#moving-wordpress-multisite\">\u79fb\u52a8 WordPress \u591a\u7ad9\u70b9<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#top\">\u9876\u90e8\u2191<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-cli\"><a href=\"https:\/\/wordpress.org\/support\/article\/changing-the-site-url\/#wp-cli\">wp-cli<\/a><\/h3>\n\n\n\n<p><a href=\"http:\/\/wp-cli.org\/\">wp-cli<\/a>\u662f\u4e00\u4e2a\u8d85\u7ea7\u6709\u7528\u7684 shell \u5de5\u5177\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>wp search-replace <\/code><code>'example.dev'<\/code> <code>'example.com'<\/code> <code>--skip-columns=guid<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6216\u8005\uff0c\u5982\u679c\u60a8\u53ea\u60f3\u66f4\u6539\u9009\u9879\uff0c\u60a8\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>wp option update home <\/code><code>'http:\/\/example.com'<\/code><code>wp option update siteurl <\/code><code>'http:\/\/example.com'<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 WordPress \u5355\u7ad9\u70b9\u5b89\u88c5\u7684\u8bbe\u7f6e -&gt; \u5e38\u89c4\u5c4f\u5e55\u4e0a\uff0c\u6709\u4e24\u4e2a\u5b57\u6bb5\u540d\u4e3a\u201cWordPress \u5730\u5740 ( &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url\"> <span class=\"screen-reader-text\">\u66f4\u6539\u7ad9\u70b9 URL<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"doc_category":[9],"doc_tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u66f4\u6539\u7ad9\u70b9 URL - WordPress\u4e2d\u6587<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpeyes.com\/wordpress\/docs\/\u66f4\u6539\u7ad9\u70b9-url\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u66f4\u6539\u7ad9\u70b9 URL - WordPress\u4e2d\u6587\" \/>\n<meta property=\"og:description\" content=\"\u5728 WordPress \u5355\u7ad9\u70b9\u5b89\u88c5\u7684\u8bbe\u7f6e -&gt; \u5e38\u89c4\u5c4f\u5e55\u4e0a\uff0c\u6709\u4e24\u4e2a\u5b57\u6bb5\u540d\u4e3a\u201cWordPress \u5730\u5740 ( &hellip; \u66f4\u6539\u7ad9\u70b9 URL Read More \u00bb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpeyes.com\/wordpress\/docs\/\u66f4\u6539\u7ad9\u70b9-url\" \/>\n<meta property=\"og:site_name\" content=\"WordPress\u4e2d\u6587\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-03T06:03:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url\",\"name\":\"\u66f4\u6539\u7ad9\u70b9 URL - WordPress\u4e2d\u6587\",\"isPartOf\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#website\"},\"datePublished\":\"2022-07-03T06:02:56+00:00\",\"dateModified\":\"2022-07-03T06:03:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/wpeyes.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/wpeyes.com\/wordpress\/docs\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u66f4\u6539\u7ad9\u70b9 URL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#website\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/\",\"name\":\"WordPress\u4e2d\u6587\",\"description\":\"wpeyes\u6280\u672f\u89c6\u70b9\",\"publisher\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpeyes.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#organization\",\"name\":\"WordPress\u4e2d\u6587\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png\",\"contentUrl\":\"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png\",\"width\":1000,\"height\":1000,\"caption\":\"WordPress\u4e2d\u6587\"},\"image\":{\"@id\":\"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u66f4\u6539\u7ad9\u70b9 URL - WordPress\u4e2d\u6587","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpeyes.com\/wordpress\/docs\/\u66f4\u6539\u7ad9\u70b9-url","og_locale":"zh_CN","og_type":"article","og_title":"\u66f4\u6539\u7ad9\u70b9 URL - WordPress\u4e2d\u6587","og_description":"\u5728 WordPress \u5355\u7ad9\u70b9\u5b89\u88c5\u7684\u8bbe\u7f6e -&gt; \u5e38\u89c4\u5c4f\u5e55\u4e0a\uff0c\u6709\u4e24\u4e2a\u5b57\u6bb5\u540d\u4e3a\u201cWordPress \u5730\u5740 ( &hellip; \u66f4\u6539\u7ad9\u70b9 URL Read More \u00bb","og_url":"https:\/\/wpeyes.com\/wordpress\/docs\/\u66f4\u6539\u7ad9\u70b9-url","og_site_name":"WordPress\u4e2d\u6587","article_modified_time":"2022-07-03T06:03:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url","url":"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url","name":"\u66f4\u6539\u7ad9\u70b9 URL - WordPress\u4e2d\u6587","isPartOf":{"@id":"https:\/\/wpeyes.com\/wordpress\/#website"},"datePublished":"2022-07-03T06:02:56+00:00","dateModified":"2022-07-03T06:03:02+00:00","breadcrumb":{"@id":"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpeyes.com\/wordpress\/docs\/%e6%9b%b4%e6%94%b9%e7%ab%99%e7%82%b9-url#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/wpeyes.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/wpeyes.com\/wordpress\/docs"},{"@type":"ListItem","position":3,"name":"\u66f4\u6539\u7ad9\u70b9 URL"}]},{"@type":"WebSite","@id":"https:\/\/wpeyes.com\/wordpress\/#website","url":"https:\/\/wpeyes.com\/wordpress\/","name":"WordPress\u4e2d\u6587","description":"wpeyes\u6280\u672f\u89c6\u70b9","publisher":{"@id":"https:\/\/wpeyes.com\/wordpress\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpeyes.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Organization","@id":"https:\/\/wpeyes.com\/wordpress\/#organization","name":"WordPress\u4e2d\u6587","url":"https:\/\/wpeyes.com\/wordpress\/","logo":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/","url":"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png","contentUrl":"https:\/\/wpeyes.com\/wordpress\/wp-content\/uploads\/sites\/8\/2024\/01\/WordPress-logotype-wmark-white.png","width":1000,"height":1000,"caption":"WordPress\u4e2d\u6587"},"image":{"@id":"https:\/\/wpeyes.com\/wordpress\/#\/schema\/logo\/image\/"}}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"qmk","author_link":"https:\/\/wpeyes.com\/wordpress\/archives\/author\/qmk"},"uagb_comment_info":3,"uagb_excerpt":"\u5728 WordPress \u5355\u7ad9\u70b9\u5b89\u88c5\u7684\u8bbe\u7f6e -&gt; \u5e38\u89c4\u5c4f\u5e55\u4e0a\uff0c\u6709\u4e24\u4e2a\u5b57\u6bb5\u540d\u4e3a\u201cWordPress \u5730\u5740 (&hellip;","_links":{"self":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs\/245"}],"collection":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":1,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs\/245\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/docs\/245\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/doc_category?post=245"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wpeyes.com\/wordpress\/wp-json\/wp\/v2\/doc_tag?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}