{"id":2180,"date":"2026-06-10T10:18:57","date_gmt":"2026-06-10T10:18:57","guid":{"rendered":"https:\/\/alexisiumus.ru\/?p=2180"},"modified":"2026-06-10T10:20:37","modified_gmt":"2026-06-10T10:20:37","slug":"%d0%ba%d0%b0%d0%ba-%d0%be%d0%b1%d0%bd%d0%be%d0%b2%d0%b8%d1%82%d1%8c-url-%d0%b2-%d0%b1%d0%b0%d0%b7%d0%b5-wordpress-%d0%bf%d1%80%d0%b8-%d1%81%d0%bc%d0%b5%d0%bd%d0%b5-%d0%b4%d0%be%d0%bc%d0%b5%d0%bd%d0%b0","status":"publish","type":"post","link":"https:\/\/alexisiumus.ru\/?p=2180","title":{"rendered":"\u041a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c URL \u0432 \u0431\u0430\u0437\u0435 WordPress \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u0434\u043e\u043c\u0435\u043d\u0430 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>URL \u0432 \u0431\u0430\u0437\u0435 WordPress \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <code>wp_options<\/code> (\u043f\u043e\u043b\u044f <code>siteurl<\/code> \u0438 <code>home<\/code>) \u0438 \u2014 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u2014 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u044e\u0442 \u0441\u0442\u0430\u0440\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u0432\u043e \u0432\u0441\u0451\u043c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SQL \u0438\u043b\u0438 WP\u2011CLI.<\/strong> \u041d\u0438\u0436\u0435 \u2014 \u043f\u043e\u043b\u043d\u044b\u0439, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd27 \u041a\u0430\u043a \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c URL \u0432 \u0431\u0430\u0437\u0435 WordPress (\u0447\u0435\u0440\u0435\u0437 phpMyAdmin)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 <code>wp_options<\/code><\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0430\u0434\u0440\u0435\u0441 \u0441\u0430\u0439\u0442\u0430.<br>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e <code>home<\/code> \u0438 <code>siteurl<\/code> \u043d\u0443\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c <a href=\"https:\/\/razrabweb.ru\/creation\/kak-pomeniat-url-saita-wordpress\/\">razrabweb.ru<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 phpMyAdmin:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0448\u044c \u0431\u0430\u0437\u0443 \u2192 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 <code>wp_options<\/code><\/li>\n\n\n\n<li>\u0418\u0449\u0435\u0448\u044c \u0441\u0442\u0440\u043e\u043a\u0438:\n<ul class=\"wp-block-list\">\n<li><code>option_name = 'siteurl'<\/code><\/li>\n\n\n\n<li><code>option_name = 'home'<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u0412 <code>option_value<\/code> \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0448\u044c \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<br><code>https:\/\/new-domain.ru<\/code><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd04 \u041c\u0430\u0441\u0441\u043e\u0432\u0430\u044f \u0437\u0430\u043c\u0435\u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 URL \u0432 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0435<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445: \u043f\u043e\u0441\u0442\u044b, \u043c\u0435\u0442\u0430\u043f\u043e\u043b\u044f, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0435\u043c.<br>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u044b \u0447\u0435\u0440\u0435\u0437 SQL <a href=\"https:\/\/razrabweb.ru\/creation\/kak-pomeniat-url-saita-wordpress\/\">razrabweb.ru<\/a> <a href=\"https:\/\/olegdobrynin.ru\/posts\/sql-queries-for-wordpress-migration\/\">olegdobrynin.ru<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 SQL\u2011\u0437\u0430\u043f\u0440\u043e\u0441\u044b:<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f \u041f\u0435\u0440\u0435\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u2014 <strong>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0411\u0414<\/strong> (\u044d\u0442\u043e \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u044e\u0442 \u0432\u0441\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438).<\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043f\u043e\u0441\u0442\u0430\u0445:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE wp_posts \nSET post_content = REPLACE(post_content, 'https:\/\/old-domain.ru', 'https:\/\/new-domain.ru');<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043c\u0435\u0442\u0430\u043f\u043e\u043b\u044f\u0445:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE wp_postmeta \nSET meta_value = REPLACE(meta_value, 'https:\/\/old-domain.ru', 'https:\/\/new-domain.ru');<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0442\u0435\u043c \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE wp_options \nSET option_value = REPLACE(option_value, 'https:\/\/old-domain.ru', 'https:\/\/new-domain.ru');<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udd39 \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c GUID (\u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0442, \u0447\u0442\u043e \u043c\u0435\u043d\u044f\u0442\u044c GUID \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u0440\u044b\u0439 \u0434\u043e\u043c\u0435\u043d \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <a href=\"https:\/\/razrabweb.ru\/creation\/kak-pomeniat-url-saita-wordpress\/\">razrabweb.ru<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UPDATE wp_posts \nSET guid = REPLACE(guid, 'https:\/\/old-domain.ru', 'https:\/\/new-domain.ru') \nWHERE post_type = 'attachment';<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83e\uddf0 \u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 \u043f\u043b\u0430\u0433\u0438\u043d Better Search Replace<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 SQL\u2011\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u0443\u0433\u0430\u044e\u0442, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d.<br>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0442 \u0435\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c (dry\u2011run, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f) <a href=\"https:\/\/wpfl.org\/blog\/kak-zamenit-url-adresa-v-wordpress-za-5-minut\/\">wpfl.org<\/a> <a href=\"https:\/\/rankbrain.ru\/obnovlenie-teksta-i-url-adresov-v-baze-dannyh-wordpress-plagin.html\">RankBrain.ru<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u0443\u0442\u044c:<br><strong>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u2192 Better Search Replace<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0412 \u043f\u043e\u043b\u0435 <strong>Search for<\/strong> \u2014 \u0441\u0442\u0430\u0440\u044b\u0439 \u0434\u043e\u043c\u0435\u043d<\/li>\n\n\n\n<li>\u0412 \u043f\u043e\u043b\u0435 <strong>Replace with<\/strong> \u2014 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d<\/li>\n\n\n\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/li>\n\n\n\n<li>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c <strong>Dry run<\/strong> (\u043f\u0440\u043e\u0431\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a)<\/li>\n\n\n\n<li>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0443<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83d\udda5\ufe0f WP\u2011CLI (\u0441\u0430\u043c\u044b\u0439 \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp search-replace 'https:\/\/old-domain.ru' 'https:\/\/new-domain.ru' --all-tables<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">WP\u2011CLI \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\ud83e\uddea \u041f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f URL<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043a\u0435\u0448 WordPress<\/li>\n\n\n\n<li>\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043a\u0435\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430<\/li>\n\n\n\n<li>\u041f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c <strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u2192 \u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438<\/strong><\/li>\n\n\n\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u0430\u0434\u043c\u0438\u043d\u043a\u0438<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044e URL \u0432 \u0431\u0430\u0437\u0435 WordPress: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 siteurl \u0438 home \u0432 wp_options, \u043c\u0430\u0441\u0441\u043e\u0432\u0430\u044f \u0437\u0430\u043c\u0435\u043d\u0430 \u0441\u0441\u044b\u043b\u043e\u043a \u0447\u0435\u0440\u0435\u0437 SQL, WP\u2011CLI \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u044b. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0438 \u0447\u0435\u043a\u2011\u043b\u0438\u0441\u0442.<\/p>\n","protected":false},"author":1,"featured_media":2182,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[33],"tags":[750,746,744,747,749,751,748,752,745],"class_list":["post-2180","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-33","tag-better-search-replace","tag-sql---wordpress","tag-wordpress","tag-wp_options-siteurl-home","tag-wp-cli-search-replace","tag--wordpress","tag--url-wordpress","tag-752","tag-745"],"_links":{"self":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2180"}],"version-history":[{"count":2,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2180\/revisions"}],"predecessor-version":[{"id":2183,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/posts\/2180\/revisions\/2183"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=\/wp\/v2\/media\/2182"}],"wp:attachment":[{"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexisiumus.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}