{"id":777,"date":"2025-12-30T22:39:46","date_gmt":"2025-12-30T14:39:46","guid":{"rendered":"https:\/\/blog.jason-lam.com\/?p=777"},"modified":"2026-02-04T20:51:46","modified_gmt":"2026-02-04T12:51:46","slug":"wordpress%e5%9c%b0%e5%9d%80%e4%bf%ae%e6%94%b9%e5%be%8c%e4%bf%ae%e5%be%a9%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.jason-lam.com\/?p=777","title":{"rendered":"WordPress\u5e38\u898b\u554f\u984c\u96c6"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"777\" class=\"elementor elementor-777\">\n\t\t\t\t<div class=\"elementor-element elementor-element-744b4540 e-flex e-con-boxed e-con e-parent\" data-id=\"744b4540\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-18b482b e-con-full e-flex e-con e-child\" data-id=\"18b482b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3e2786c elementor-widget elementor-widget-heading\" data-id=\"3e2786c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><p style=\"font-family: Roboto, sans-serif;font-size: 14px;font-style: normal;font-weight: 400\"><span style=\"font-size: 17px;font-weight: 600\">WordPress\u7ba1\u7406\u5f8c\u53f0\u4fee\u6539URL\u5730\u5740\u5f8c\u7684\u4fee\u5fa9\u65b9\u6cd5<\/span><span style=\"font-family: Roboto, sans-serif;font-size: 17px;font-weight: 600\"><\/span><\/p><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-82e6d7e elementor-widget elementor-widget-text-editor\" data-id=\"82e6d7e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>\u4fee\u5fa9\u7684\u65b9\u6cd5\u7576\u7136\u6709\u5f88\u591a\uff0c\u6700\u7c21\u55ae\u7684\u65b9\u6cd5\u5c31\u662f\u76f4\u63a5<strong>\u4fee\u6539\u00a0<\/strong><code>wp-config.php<\/code><strong>\u00a0\u6587\u4ef6<\/strong><\/p><p>\u901a\u904eSSH Client\uff0c\u5728 WordPress \u6839\u76ee\u9304\u7684\u00a0<code>wp-config.php<\/code>\u00a0\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u78bc\u5c31\u53ef\u4ee5\u5f37\u884c\u5b9a\u7fa9URL\u7684\u4f4d\u7f6e\uff08\u653e\u5728\u00a0<code>\/* That's all, stop editing! Happy blogging. *\/<\/code>\u00a0\u9019\u884c\u4e4b\u524d\uff09\uff1a<\/p><p>define(&#8216;WP_HOME&#8217;, &#8216;https:\/\/\u4f60\u7684\u6b63\u78ba\u7db2\u5740&#8217;);<br \/>define(&#8216;WP_SITEURL&#8217;, &#8216;https:\/\/\u4f60\u7684\u6b63\u78ba\u7db2\u5740&#8217;);<\/p><p>\u4fee\u6539\u5f8c\u5373\u53ef\u6309\u4fee\u6539\u7684\u5730\u5740\u9032\u5165\u3002\u4f46\u7576\u4f60\u518d\u9032\u5165\u7ba1\u7406\u5f8c\u53f0\u6642\u6703\u767c\u73fe\uff0cWordPress Address (URL)\u4e00\u6b04\u7684\u5167\u5bb9\u6703\u8b8a\u6210\u7070\u8272\uff0c\u5373\u4e0d\u53ef\u4ee5\u4fee\u6539\u3002\u6545\u6b64\uff0c\u53ef\u901a\u904e\u4ee5\u4e0b\u65b9\u6cd5\u518d\u6b21\u4fee\u6539\u3002<\/p><ol class=\"wp-block-list\"><li>\u5148\u6253\u958b\u7ba1\u7406\u5f8c\u53f0\u767b\u5165\u9801\u9762\uff0c\u5728\u8f38\u5165login name\u53ca\u5bc6\u78bc\u524d\u4e0d\u8981\u767b\u5165<\/li><li>\u901aSSH\u9032\u5165Wordpress\u7684\u6839\u76ee\u9304\uff0c\u518d\u5c07\u524d\u6bb5\u7684\u4fee\u6539\u5167\u5bb9\u522a\u9664<\/li><li>\u73fe\u5728\u767b\u5165\u7ba1\u7406\u5f8c\u53f0\uff0c\u5373\u53ef\u4fee\u6539\u76f8\u540c\u8a2d\u7f6e\u3002<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-142cff1 e-con-full e-flex e-con e-child\" data-id=\"142cff1\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0f293b6 elementor-widget elementor-widget-heading\" data-id=\"0f293b6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><p style=\"font-family: Roboto, sans-serif;font-size: 14px;font-style: normal;font-weight: 400\"><span style=\"font-size: 17px;font-weight: 600\">\u5c07All-In-One WP Migration\u4e0a\u50b3\u6a94\u6848\u7684\u4e0a\u9650\u8a2d\u70ba2TB<\/span><span style=\"font-family: Roboto, sans-serif;font-size: 20px;font-weight: 600\"><\/span><\/p><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d647948 elementor-widget elementor-widget-text-editor\" data-id=\"d647948\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>\u9996\u8981\u689d\u4ef6\uff0c\u5b89\u88dd\u7684AIO plugin\u70ba\u7834\u89e3\u7248\uff0c\u7136\u5f8c\uff1a<\/p><ol><li><span style=\"font-size: 14px;\">\u65bcPlugins\u88e1\u9078\u64c7\u00a0<code>Plugin File Editor<\/code>\u00a0(\u90e8\u5206\u7248\u672c\u53ef\u80fd\u5b58\u65bcTool\u83dc\u55ae\u6b04\u5167\uff09<\/span><\/li><li style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u7136\u5f8c\u65bc\u53f3\u4e0a\u65b9\u00a0<code>Select plugin to edit: All-in-one WP Migration<\/code><\/span><\/li><li style=\"font-size: 14px;\">Click\u00a0<code>Select<\/code><\/li><li style=\"font-size: 14px;\">\u518d\u65bc Plugin Files\u4e0b\u65b9\u9078\u00a0<code>constants.php<\/code><\/li><li style=\"font-size: 14px;\">\u65bc\u7b2c282\u884c\u627e\u5230\u00a0<code>= Max File Size =<\/code><\/li><li style=\"font-size: 14px;\">\u5c07\u7b2c284\u884c\u4e2d define( &#8216;AI1WM_MAX_FILE_SIZE&#8217;, 2 &lt;&lt;\u00a0<code>28<\/code> ); \u6539\u70ba define( &#8216;AI1WM_MAX_FILE_SIZE&#8217;, 2 &lt;&lt;\u00a0<code>40<\/code>\u00a0);<\/li><li style=\"font-size: 14px;\">Save the file.<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-48c9018 e-con-full e-flex e-con e-child\" data-id=\"48c9018\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8fd6482 elementor-widget elementor-widget-heading\" data-id=\"8fd6482\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><p style=\"font-family: Roboto, sans-serif;font-style: normal;font-weight: 400\"><span style=\"font-family: Roboto, sans-serif;font-size: 20px;font-weight: 600\">\u7121\u9700 plugin \u7684 URL redirection<\/span><span style=\"font-family: Roboto, sans-serif;font-size: 20px;font-weight: 600\"><\/span><\/p><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-88187e9 elementor-widget elementor-widget-text-editor\" data-id=\"88187e9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t\u5b89\u88ddplugin\u7d55\u5c0d\u662f\u4e00\u500b\u65b9\u6cd5\uff0c\u4e5f\u53ef\u4ee5\u8a2d\u7f6e\u4e0d\u540c\u689d\u4ef6\u7684redirection\uff0c\u4f46\u82e5\u4e0d\u60f3\u592a\u591aplugin\u7684\u5b89\u88dd\uff0c\u7c21\u55ae\u7684redirection\u53ea\u9700\u4e00\u53e5scrip\u5c31\u53ef\u4ee5\uff1a\n<ol>\n \t<li><span style=\"font-size: 14px;\">\u4e0d\u8ad6\u8981redirect\u7684\u9801\u9762\u6709\u6c92\u6709\u5167\u5bb9\uff0c\u53ea\u9700\u901a\u904e\u7de8\u8f2f\u9801\u9762\uff0c\u4e26\u4ee5html\u65b9\u5f0f\u52a0\u5165\u4e00\u53e5\u00a0<code>&lt;script&gt; window.location.href = \"https:\/\/google<span class=\"yt-core-attributed-string--inline-block-mod\"><img decoding=\"async\" class=\"ytCoreImageHost yt-core-attributed-string__image-element yt-core-attributed-string__image-element--image-alignment-vertical-center ytCoreImageContentModeScaleToFill ytCoreImageLoaded\" src=\"https:\/\/www.youtube.com\/s\/gaming\/emoji\/7ff574f2\/emoji_u1f923.png\" alt=\"\ud83e\udd23\" width=\"20\" height=\"20\" \/><\/span>.com\"; &lt;\/script&gt;\u00a0<\/code>(\u65bc\u9801\u9762\u5167\u4efb\u4f55\u4f4d\u7f6e\uff0c\u5efa\u8b70\u9802\u90e8\uff0c\u7121\u9808\u7406\u6703\u6216\u522a\u9664\u9801\u9762\u5167\u5df2\u5b58\u5728\u7684\u5167\u5bb9\uff09<\/span><\/li>\n \t<li style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">Save the file<\/span><\/li>\n \t<li style=\"font-size: 14px;\"><span style=\"font-size: 14px;\">\u5927\u529f\u544a\u6210!<\/span><\/li>\n<\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>WordPress\u7ba1\u7406\u5f8c\u53f0\u4fee\u6539URL\u5730\u5740\u5f8c\u7684\u4fee\u5fa9\u65b9\u6cd5 \u4fee\u5fa9\u7684\u65b9\u6cd5\u7576\u7136\u6709\u5f88\u591a\uff0c\u6700\u7c21\u55ae\u7684\u65b9\u6cd5\u5c31\u662f\u76f4\u63a5\u4fee\u6539\u00a0wp-config.php\u00a0\u6587\u4ef6 \u901a\u904eSSH Client\uff0c\u5728 WordPress \u6839\u76ee\u9304\u7684\u00a0wp-config.php\u00a0\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u78bc\u5c31\u53ef\u4ee5\u5f37\u884c\u5b9a\u7fa9URL\u7684\u4f4d\u7f6e\uff08\u653e\u5728\u00a0\/* That&#8217;s all, stop editing! Happy blogging. *\/\u00a0\u9019\u884c\u4e4b\u524d\uff09\uff1a define(&#8216;WP_HOME&#8217;, &#8216;https:\/\/\u4f60\u7684\u6b63\u78ba\u7db2\u5740&#8217;);define(&#8216;WP_SITEURL&#8217;, &#8216;https:\/\/\u4f60\u7684\u6b63\u78ba\u7db2\u5740&#8217;); \u4fee\u6539\u5f8c\u5373\u53ef\u6309\u4fee\u6539\u7684\u5730\u5740\u9032\u5165\u3002\u4f46\u7576\u4f60\u518d\u9032\u5165\u7ba1\u7406\u5f8c\u53f0\u6642\u6703\u767c\u73fe\uff0cWordPress Address (URL)\u4e00\u6b04\u7684\u5167\u5bb9\u6703\u8b8a\u6210\u7070\u8272\uff0c\u5373\u4e0d\u53ef\u4ee5\u4fee\u6539\u3002\u6545\u6b64\uff0c\u53ef\u901a\u904e\u4ee5\u4e0b\u65b9\u6cd5\u518d\u6b21\u4fee\u6539\u3002 \u5148\u6253\u958b\u7ba1\u7406\u5f8c\u53f0\u767b\u5165\u9801\u9762\uff0c\u5728\u8f38\u5165login name\u53ca\u5bc6\u78bc\u524d\u4e0d\u8981\u767b\u5165 \u901aSSH\u9032\u5165Wordpress\u7684\u6839\u76ee\u9304\uff0c\u518d\u5c07\u524d\u6bb5\u7684\u4fee\u6539\u5167\u5bb9\u522a\u9664 \u73fe\u5728\u767b\u5165\u7ba1\u7406\u5f8c\u53f0\uff0c\u5373\u53ef\u4fee\u6539\u76f8\u540c\u8a2d\u7f6e\u3002 \u5c07All-In-One WP Migration\u4e0a\u50b3\u6a94\u6848\u7684\u4e0a\u9650\u8a2d\u70ba2TB \u9996\u8981\u689d\u4ef6\uff0c\u5b89\u88dd\u7684AIO plugin\u70ba\u7834\u89e3\u7248\uff0c\u7136\u5f8c\uff1a \u65bcPlugins\u88e1\u9078\u64c7\u00a0Plugin File Editor\u00a0(\u90e8\u5206\u7248\u672c\u53ef\u80fd\u5b58\u65bcTool\u83dc\u55ae\u6b04\u5167\uff09 \u7136\u5f8c\u65bc\u53f3\u4e0a\u65b9\u00a0Select plugin to edit: All-in-one WP Migration Click\u00a0Select \u518d\u65bc Plugin Files\u4e0b\u65b9\u9078\u00a0constants.php \u65bc\u7b2c282\u884c\u627e\u5230\u00a0= Max File Size = \u5c07\u7b2c284\u884c\u4e2d define( &#8216;AI1WM_MAX_FILE_SIZE&#8217;, 2 &lt;&lt;\u00a028 ); \u6539\u70ba define( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[8],"tags":[],"class_list":["post-777","post","type-post","status-publish","format-standard","hentry","category-wordpress-","entry"],"_links":{"self":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=777"}],"version-history":[{"count":114,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions\/905"}],"wp:attachment":[{"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jason-lam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}