{"id":11999,"date":"2026-10-28T21:01:35","date_gmt":"2026-10-28T18:01:35","guid":{"rendered":"https:\/\/webmister.pro\/301-redyrekt-htaccess\/"},"modified":"2026-10-28T21:01:35","modified_gmt":"2026-10-28T18:01:35","slug":"301-redyrekt-htaccess","status":"publish","type":"post","link":"https:\/\/webmister.pro\/uk\/301-redyrekt-htaccess\/","title":{"rendered":"301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 .htaccess: \u0433\u043e\u0442\u043e\u0432\u0456 \u043f\u0440\u0430\u0432\u0438\u043b\u0430"},"content":{"rendered":"<p>301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u2014 \u0446\u0435 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u044f\u043a\u0430 \u043a\u0430\u0436\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443 \u0439 \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u043e\u043c\u0443 \u0440\u043e\u0431\u043e\u0442\u0443: \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u043f\u0435\u0440\u0435\u0457\u0445\u0430\u043b\u0430 \u043d\u0430\u0437\u0430\u0432\u0436\u0434\u0438, \u043e\u0441\u044c \u0457\u0457 \u043d\u043e\u0432\u0430 \u0430\u0434\u0440\u0435\u0441\u0430. \u0412\u0456\u0434 \u0456\u043d\u0448\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0456\u0432 \u00ab\u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443\u0442\u0438\u00bb \u0432\u0456\u0434\u0432\u0456\u0434\u0443\u0432\u0430\u0447\u0430 \u0432\u0456\u043d \u0432\u0456\u0434\u0440\u0456\u0437\u043d\u044f\u0454\u0442\u044c\u0441\u044f \u0442\u0438\u043c, \u0449\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0432 \u0456\u043d\u0434\u0435\u043a\u0441 \u043d\u0435 \u043b\u0438\u0448\u0435 \u0430\u0434\u0440\u0435\u0441\u0443, \u0430 \u0439 \u043d\u0430\u043a\u043e\u043f\u0438\u0447\u0435\u043d\u0443 \u0432\u0430\u0433\u0443 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u044c. \u041d\u0438\u0436\u0447\u0435 \u2014 \u0433\u043e\u0442\u043e\u0432\u0456 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f <code>.htaccess<\/code> \u043f\u0456\u0434 \u0442\u0438\u043f\u043e\u0432\u0456 \u0437\u0430\u0434\u0430\u0447\u0456, \u0457\u0445\u043d\u0456 \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0434\u043b\u044f nginx \u0456 \u0440\u043e\u0437\u0431\u0456\u0440 \u043f\u043e\u043c\u0438\u043b\u043e\u043a, \u0447\u0435\u0440\u0435\u0437 \u044f\u043a\u0456 \u043f\u0435\u0440\u0435\u0457\u0437\u0434 \u043a\u043e\u0448\u0442\u0443\u0454 \u0441\u0430\u0439\u0442\u0443 \u0442\u0440\u0430\u0444\u0456\u043a\u0443.<\/p>\n<nav class=\"wppub-toc\" aria-label=\"\u0417\u043c\u0456\u0441\u0442\">\n<p class=\"wppub-toc__title\">\u0417\u043c\u0456\u0441\u0442<\/p>\n<ul class=\"wppub-toc__list\">\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#yak-tse-pratsyuye\">\u042f\u043a \u0446\u0435 \u043f\u0440\u0430\u0446\u044e\u0454<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#pravila-dlya-htaccess\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f .htaccess<\/a>\n<ul class=\"wppub-toc__list wppub-toc__list--sub\">\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#odna-storinka-na-inshu\">\u041e\u0434\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u043d\u0430 \u0456\u043d\u0448\u0443<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#skleyka-dzerkal-z-www-na-bez-www\">\u0421\u043a\u043b\u0435\u0439\u043a\u0430 \u0434\u0437\u0435\u0440\u043a\u0430\u043b: \u0437 www \u043d\u0430 \u0431\u0435\u0437 www<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#perehid-na-https\">\u041f\u0435\u0440\u0435\u0445\u0456\u0434 \u043d\u0430 HTTPS<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#https-i-bez-www-odnim-pravilom\">HTTPS \u0456 \u0431\u0435\u0437 www \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#slesh-u-kintsi-adresi\">\u0421\u043b\u0435\u0448 \u0443 \u043a\u0456\u043d\u0446\u0456 \u0430\u0434\u0440\u0435\u0441\u0438<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#pereyizd-na-noviy-domen\">\u041f\u0435\u0440\u0435\u0457\u0437\u0434 \u043d\u0430 \u043d\u043e\u0432\u0438\u0439 \u0434\u043e\u043c\u0435\u043d<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#rozdil-na-rozdil-i-adresi-z-parametrami\">\u0420\u043e\u0437\u0434\u0456\u043b \u043d\u0430 \u0440\u043e\u0437\u0434\u0456\u043b \u0456 \u0430\u0434\u0440\u0435\u0441\u0438 \u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/a><\/li>\n<\/ul>\n<\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#te-same-na-nginx\">\u0422\u0435 \u0441\u0430\u043c\u0435 \u043d\u0430 nginx<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#chasti-pomilki\">\u0427\u0430\u0441\u0442\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#yak-pereviriti\">\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#korotko-pro-golovne\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043f\u0440\u043e \u0433\u043e\u043b\u043e\u0432\u043d\u0435<\/a><\/li>\n<\/ul>\n<\/nav>\n<h2 id=\"yak-tse-pratsyuye\">\u042f\u043a \u0446\u0435 \u043f\u0440\u0430\u0446\u044e\u0454<\/h2>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442 \u043a\u043e\u0434\u043e\u043c 301 \u0456 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c <code>Location<\/code> \u0456\u0437 \u043d\u043e\u0432\u043e\u044e \u0430\u0434\u0440\u0435\u0441\u043e\u044e. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0434\u0440\u0430\u0437\u0443 \u0439\u0434\u0435 \u0442\u0443\u0434\u0438, \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043d\u0435\u043f\u043e\u043c\u0456\u0442\u043d\u043e \u0434\u043b\u044f \u0432\u0456\u0434\u0432\u0456\u0434\u0443\u0432\u0430\u0447\u0430, \u0456 \u043a\u0435\u0448\u0443\u0454 \u0446\u0435\u0439 \u043f\u0435\u0440\u0435\u0445\u0456\u0434. \u041f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u043a \u0440\u043e\u0431\u0438\u0442\u044c \u0442\u0430\u043a \u0441\u0430\u043c\u043e: \u0437\u0430\u043c\u0456\u043d\u044e\u0454 \u0432 \u0456\u043d\u0434\u0435\u043a\u0441\u0456 \u0441\u0442\u0430\u0440\u0443 URL \u043d\u043e\u0432\u043e\u044e \u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0454 \u0457\u0439 \u043f\u043e\u0441\u0438\u043b\u0430\u043b\u044c\u043d\u0443 \u0432\u0430\u0433\u0443.<\/p>\n<figure><svg viewbox=\"0 0 900 300\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442: \u0437\u0430\u043f\u0440\u043e\u0441, \u043e\u0442\u0432\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c Location \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441\" style=\"width:100%;height:auto;max-width:900px;display:block;margin:0 auto 20px\"><rect fill=\"#16181B\" stroke=\"#3B3B3B\" stroke-width=\"1\" x=\"20\" y=\"40\" width=\"200\" height=\"90\" rx=\"2\"><\/rect><text fill=\"#EEEEEE\" font-weight=\"400\" font-size=\"16px\" font-family=\"Roboto, Arial, sans-serif\" x=\"42\" y=\"76\">\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0430\u0431\u043e \u0440\u043e\u0431\u043e\u0442<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"42\" y=\"100\">GET \/old-page\/<\/text><path stroke=\"#4A4A4A\" stroke-width=\"1.5\" fill=\"none\" d=\"M220 85 h100 m-12 -6 l12 6 l-12 6\"><\/path><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"236\" y=\"74\">\u0437\u0430\u043f\u0438\u0442<\/text><rect fill=\"#15202A\" stroke=\"#30738E\" stroke-width=\"1.5\" x=\"320\" y=\"26\" width=\"260\" height=\"118\" rx=\"2\"><\/rect><text fill=\"#EEEEEE\" font-weight=\"400\" font-size=\"16px\" font-family=\"Roboto, Arial, sans-serif\" x=\"342\" y=\"60\">\u0421\u0435\u0440\u0432\u0435\u0440<\/text><text fill=\"#30738E\" font-weight=\"400\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"342\" y=\"88\">301 Moved Permanently<\/text><text fill=\"#30738E\" font-weight=\"400\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"342\" y=\"112\">Location: \/new-page\/<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"342\" y=\"134\">\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0437 .htaccess<\/text><path stroke=\"#4A4A4A\" stroke-width=\"1.5\" fill=\"none\" d=\"M580 85 h100 m-12 -6 l12 6 l-12 6\"><\/path><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"596\" y=\"74\">\u043f\u0435\u0440\u0435\u0445\u0456\u0434<\/text><rect fill=\"#16181B\" stroke=\"#3B3B3B\" stroke-width=\"1\" x=\"680\" y=\"40\" width=\"200\" height=\"90\" rx=\"2\"><\/rect><text fill=\"#EEEEEE\" font-weight=\"400\" font-size=\"16px\" font-family=\"Roboto, Arial, sans-serif\" x=\"702\" y=\"76\">\u041d\u043e\u0432\u0430 \u0430\u0434\u0440\u0435\u0441\u0430<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"702\" y=\"100\">200 OK, \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u043e<\/text><rect fill=\"#16181B\" stroke=\"#3B3B3B\" stroke-width=\"1\" x=\"20\" y=\"176\" width=\"860\" height=\"96\" rx=\"2\"><\/rect><text fill=\"#EEEEEE\" font-weight=\"400\" font-size=\"16px\" font-family=\"Roboto, Arial, sans-serif\" x=\"44\" y=\"208\">\u0429\u043e \u0432\u0430\u0436\u043b\u0438\u0432\u043e \u0434\u043b\u044f \u043f\u043e\u0448\u0443\u043a\u0443<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"44\" y=\"234\">301 \u043a\u0430\u0436\u0435 \u00ab\u0430\u0434\u0440\u0435\u0441\u0430 \u0437\u043c\u0456\u043d\u0438\u043b\u0430\u0441\u044f \u043d\u0430\u0437\u0430\u0432\u0436\u0434\u0438\u00bb: \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u043a \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 \u0432 \u0456\u043d\u0434\u0435\u043a\u0441\u0456 \u0440\u0430\u0437\u043e\u043c \u0456\u0437 \u043d\u0430\u043a\u043e\u043f\u0438\u0447\u0435\u043d\u043e\u044e \u0432\u0430\u0433\u043e\u044e \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u044c.<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"44\" y=\"258\">302 \u043e\u0437\u043d\u0430\u0447\u0430\u0454 \u00ab\u0442\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u043e\u00bb \u2014 \u0441\u0442\u0430\u0440\u0430 \u0430\u0434\u0440\u0435\u0441\u0430 \u043b\u0438\u0448\u0430\u0454\u0442\u044c\u0441\u044f \u0432 \u0456\u043d\u0434\u0435\u043a\u0441\u0456, \u0456 \u0432\u0430\u0433\u0430 \u043d\u0456\u043a\u0443\u0434\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c.<\/text><\/svg><figcaption>\u041b\u0430\u043d\u0446\u044e\u0436\u043e\u043a \u0437\u0430\u043f\u0438\u0442\u0443: \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 301 \u0456 \u043f\u0435\u0440\u0435\u0434\u0430\u0454 \u043d\u043e\u0432\u0443 \u0430\u0434\u0440\u0435\u0441\u0443<\/figcaption><\/figure>\n<p>\u0420\u0456\u0437\u043d\u0438\u0446\u044f \u043c\u0456\u0436 \u043a\u043e\u0434\u0430\u043c\u0438 \u0432\u0430\u0436\u043b\u0438\u0432\u0430 \u0439 \u043a\u043e\u0448\u0442\u0443\u0454 \u0433\u0440\u043e\u0448\u0435\u0439:<\/p>\n<div class=\"wm-table-scroll wm-table-cards\" tabindex=\"0\" role=\"region\" aria-label=\"\u0422\u0430\u0431\u043b\u0438\u0446\u044f, \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\">\n<table>\n<thead>\n<tr>\n<th>\u041a\u043e\u0434<\/th>\n<th>\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0454<\/th>\n<th>\u041a\u043e\u043b\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u0432\u0430\u0442\u0438<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>301<\/strong><\/td>\n<td data-label=\"\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0454\">\u041f\u0435\u0440\u0435\u0457\u0445\u0430\u043b\u043e \u043d\u0430\u0437\u0430\u0432\u0436\u0434\u0438<\/td>\n<td data-label=\"\u041a\u043e\u043b\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u0432\u0430\u0442\u0438\">\u0417\u043c\u0456\u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0443, \u0430\u0434\u0440\u0435\u0441\u0438 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438, \u0441\u043a\u043b\u0435\u0439\u043a\u0430 \u0434\u0437\u0435\u0440\u043a\u0430\u043b, \u043f\u0435\u0440\u0435\u0445\u0456\u0434 \u043d\u0430 HTTPS<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>302<\/strong><\/td>\n<td data-label=\"\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0454\">\u0422\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u043e<\/td>\n<td data-label=\"\u041a\u043e\u043b\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u0432\u0430\u0442\u0438\">\u0410\u043a\u0446\u0456\u044f \u043d\u0430 \u043f\u0430\u0440\u0443 \u0442\u0438\u0436\u043d\u0456\u0432, \u0442\u0435\u0445\u0440\u043e\u0431\u043e\u0442\u0438, A\/B-\u0442\u0435\u0441\u0442<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>307<\/strong><\/td>\n<td data-label=\"\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0454\">\u0422\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u043e, \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0438\u0442\u0443 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454\u0442\u044c\u0441\u044f<\/td>\n<td data-label=\"\u041a\u043e\u043b\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u0432\u0430\u0442\u0438\">\u0422\u0435 \u0441\u0430\u043c\u0435, \u0430\u043b\u0435 \u0434\u043b\u044f POST-\u0437\u0430\u043f\u0438\u0442\u0456\u0432<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>308<\/strong><\/td>\n<td data-label=\"\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0454\">\u041d\u0430\u0437\u0430\u0432\u0436\u0434\u0438, \u043c\u0435\u0442\u043e\u0434 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454\u0442\u044c\u0441\u044f<\/td>\n<td data-label=\"\u041a\u043e\u043b\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u0432\u0430\u0442\u0438\">\u0420\u0456\u0434\u043a\u0456\u0441\u043d\u0438\u0439 \u0432\u0438\u043f\u0430\u0434\u043e\u043a: \u043f\u0435\u0440\u0435\u0457\u0437\u0434 API, \u0434\u0435 \u0432\u0430\u0436\u043b\u0438\u0432\u0438\u0439 POST<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>410<\/strong><\/td>\n<td data-label=\"\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0454\">\u0412\u0438\u0434\u0430\u043b\u0435\u043d\u043e \u043d\u0430\u0437\u0430\u0432\u0436\u0434\u0438<\/td>\n<td data-label=\"\u041a\u043e\u043b\u0438 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u0432\u0430\u0442\u0438\">\u0421\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435\u043c\u0430\u0454 \u0439 \u0437\u0430\u043c\u0456\u043d\u0438 \u0457\u0439 \u043d\u0435\u043c\u0430\u0454<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041f\u043b\u0443\u0442\u0430\u0442\u0438 301 \u0456 302 \u2014 \u043d\u0430\u0439\u0434\u043e\u0440\u043e\u0436\u0447\u0430 \u043f\u043e\u043c\u0438\u043b\u043a\u0430 \u0432 \u0446\u044c\u043e\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443: \u0437\u0430 302 \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u043a \u043b\u0438\u0448\u0430\u0454 \u0432 \u0456\u043d\u0434\u0435\u043a\u0441\u0456 \u0441\u0442\u0430\u0440\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0439 \u0432\u0430\u0433\u0443 \u043d\u0430 \u043d\u043e\u0432\u0443 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0454.<\/p>\n<h2 id=\"pravila-dlya-htaccess\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f .htaccess<\/h2>\n<p>\u0423\u0441\u0456 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0438 \u0440\u043e\u0437\u0440\u0430\u0445\u043e\u0432\u0430\u043d\u0456 \u043d\u0430 Apache \u0437 \u0443\u0432\u0456\u043c\u043a\u043d\u0435\u043d\u0438\u043c <code>mod_rewrite<\/code>. \u0411\u043b\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 \u043f\u043e\u0447\u0430\u0442\u043e\u043a \u0444\u0430\u0439\u043b\u0443 <code>.htaccess<\/code> \u0443 \u043a\u043e\u0440\u0435\u043d\u0456 \u0441\u0430\u0439\u0442\u0443 \u2014 \u0434\u043e \u043f\u0440\u0430\u0432\u0438\u043b CMS, \u0456\u043d\u0430\u043a\u0448\u0435 WordPress \u043f\u0435\u0440\u0435\u0445\u043e\u043f\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0442 \u0440\u0430\u043d\u0456\u0448\u0435.<\/p>\n<pre><code>RewriteEngine On\nRewriteBase \/<\/code><\/pre>\n<h3 id=\"odna-storinka-na-inshu\">\u041e\u0434\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u043d\u0430 \u0456\u043d\u0448\u0443<\/h3>\n<pre><code># \u043f\u0440\u043e\u0441\u0442\u0438\u0439 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\nRedirect 301 \/old-page\/ https:\/\/site.com\/new-page\/\n\n# \u0442\u043e\u0439 \u0441\u0430\u043c\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0447\u0435\u0440\u0435\u0437 mod_rewrite, \u044f\u043a\u0449\u043e \u0440\u0435\u0448\u0442\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \u0442\u0435\u0436 \u043d\u0430 \u043d\u044c\u043e\u043c\u0443\nRewriteRule ^old-page\/?$ https:\/\/site.com\/new-page\/ [R=301,L]<\/code><\/pre>\n<h3 id=\"skleyka-dzerkal-z-www-na-bez-www\">\u0421\u043a\u043b\u0435\u0439\u043a\u0430 \u0434\u0437\u0435\u0440\u043a\u0430\u043b: \u0437 www \u043d\u0430 \u0431\u0435\u0437 www<\/h3>\n<pre><code>RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]\nRewriteRule ^(.*)$ https:\/\/%1\/$1 [R=301,L]<\/code><\/pre>\n<p>\u0417\u0432\u043e\u0440\u043e\u0442\u043d\u0438\u0439 \u0432\u0438\u043f\u0430\u0434\u043e\u043a, \u043a\u043e\u043b\u0438 \u0433\u043e\u043b\u043e\u0432\u043d\u0438\u043c \u0434\u0437\u0435\u0440\u043a\u0430\u043b\u043e\u043c \u043e\u0431\u0440\u0430\u043d\u043e \u0434\u043e\u043c\u0435\u043d \u0456\u0437 www:<\/p>\n<pre><code>RewriteCond %{HTTP_HOST} !^www. [NC]\nRewriteRule ^(.*)$ https:\/\/www.%{HTTP_HOST}\/$1 [R=301,L]<\/code><\/pre>\n<h3 id=\"perehid-na-https\">\u041f\u0435\u0440\u0435\u0445\u0456\u0434 \u043d\u0430 HTTPS<\/h3>\n<pre><code>RewriteCond %{HTTPS} !=on\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}\/$1 [R=301,L]<\/code><\/pre>\n<p>\u0417\u0430 Cloudflare \u0447\u0438 \u0456\u043d\u0448\u0438\u043c \u043f\u0440\u043e\u043a\u0441\u0456 \u0443\u043c\u043e\u0432\u0430 <code>%{HTTPS}<\/code> \u043d\u0435 \u0441\u043f\u0440\u0430\u0446\u044e\u0454 \u2014 \u0434\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u043f\u0438\u0442 \u0434\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0443\u0436\u0435 \u043f\u043e HTTP. \u0422\u0430\u043c \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u044e\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a:<\/p>\n<pre><code>RewriteCond %{HTTP:X-Forwarded-Proto} !https\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}\/$1 [R=301,L]<\/code><\/pre>\n<h3 id=\"https-i-bez-www-odnim-pravilom\">HTTPS \u0456 \u0431\u0435\u0437 www \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c<\/h3>\n<p>\u0413\u043e\u043b\u043e\u0432\u043d\u0438\u0439 \u043f\u0440\u0438\u0439\u043e\u043c \u0446\u044c\u043e\u0433\u043e \u0440\u043e\u0437\u0434\u0456\u043b\u0443: \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0434\u0432\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0441\u043f\u0456\u043b\u044c, \u0456\u043d\u0430\u043a\u0448\u0435 \u0432\u0438\u0439\u0434\u0435 \u043b\u0430\u043d\u0446\u044e\u0436\u043e\u043a \u0456\u0437 \u0434\u0432\u043e\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0456\u0432.<\/p>\n<pre><code>RewriteCond %{HTTPS} !=on [OR]\nRewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]\nRewriteRule ^(.*)$ https:\/\/site.com\/$1 [R=301,L]<\/code><\/pre>\n<h3 id=\"slesh-u-kintsi-adresi\">\u0421\u043b\u0435\u0448 \u0443 \u043a\u0456\u043d\u0446\u0456 \u0430\u0434\u0440\u0435\u0441\u0438<\/h3>\n<pre><code># \u0434\u043e\u0434\u0430\u0442\u0438 \u0441\u043b\u0435\u0448\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_URI} !.[a-zA-Z0-9]{1,5}$\nRewriteCond %{REQUEST_URI} !\/$\nRewriteRule ^(.*)$ \/$1\/ [R=301,L]\n\n# \u043f\u0440\u0438\u0431\u0440\u0430\u0442\u0438 \u0441\u043b\u0435\u0448\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule ^(.*)\/$ \/$1 [R=301,L]<\/code><\/pre>\n<p>\u0423\u043c\u043e\u0432\u0438 \u0437 <code>!-f<\/code> \u0456 <code>!-d<\/code> \u0442\u0443\u0442 \u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0456\u0441\u0442\u044c: \u0431\u0435\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u043e\u0447\u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0443\u0432\u0430\u0442\u0438 \u0430\u0434\u0440\u0435\u0441\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0442\u0430 \u043d\u0430\u044f\u0432\u043d\u0438\u0445 \u043f\u0430\u043f\u043e\u043a.<\/p>\n<h3 id=\"pereyizd-na-noviy-domen\">\u041f\u0435\u0440\u0435\u0457\u0437\u0434 \u043d\u0430 \u043d\u043e\u0432\u0438\u0439 \u0434\u043e\u043c\u0435\u043d<\/h3>\n<pre><code># \u0437\u0456 \u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u043d\u044f\u043c \u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a \u2014 \u0442\u0430\u043a \u0456 \u0442\u0440\u0435\u0431\u0430 \u0440\u043e\u0431\u0438\u0442\u0438\nRewriteCond %{HTTP_HOST} ^(www.)?old-site.com$ [NC]\nRewriteRule ^(.*)$ https:\/\/new-site.com\/$1 [R=301,L]\n\n# \u0443\u0441\u0435 \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0443 \u2014 \u043b\u0438\u0448\u0435 \u044f\u043a\u0449\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0443 \u0433\u0435\u0442\u044c \u0456\u043d\u0448\u0430\nRewriteRule ^(.*)$ https:\/\/new-site.com\/ [R=301,L]<\/code><\/pre>\n<p>\u0414\u0440\u0443\u0433\u0438\u0439 \u0432\u0430\u0440\u0456\u0430\u043d\u0442 \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u0432\u0432\u0430\u0436\u0430\u044e\u0442\u044c \u00ab\u043c\u2019\u044f\u043a\u043e\u044e 404\u00bb \u0456 \u0432\u0430\u0433\u0443 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u044c. \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u044c\u0442\u0435 \u0430\u0434\u0440\u0435\u0441\u0443 \u0432 \u0430\u0434\u0440\u0435\u0441\u0443 \u0441\u043a\u0440\u0456\u0437\u044c, \u0434\u0435 \u0446\u0435 \u043c\u043e\u0436\u043b\u0438\u0432\u043e, \u0430 \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0443 \u0432\u0456\u0434\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043b\u0438\u0448\u0435 \u0442\u0435, \u0447\u043e\u043c\u0443 \u0437\u0430\u043c\u0456\u043d\u0438 \u043d\u0435\u043c\u0430\u0454.<\/p>\n<h3 id=\"rozdil-na-rozdil-i-adresi-z-parametrami\">\u0420\u043e\u0437\u0434\u0456\u043b \u043d\u0430 \u0440\u043e\u0437\u0434\u0456\u043b \u0456 \u0430\u0434\u0440\u0435\u0441\u0438 \u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/h3>\n<pre><code># \/blog\/\u0441\u0442\u0430\u0442\u0442\u044f\/ \u2192 \/news\/\u0441\u0442\u0430\u0442\u0442\u044f\/\nRewriteRule ^blog\/(.*)$ \/news\/$1 [R=301,L]\n\n# ?id=12 \u2192 \/catalog\/sofa\/\nRewriteCond %{QUERY_STRING} (^|&amp;)id=12(&amp;|$)\nRewriteRule ^index.php$ \/catalog\/sofa\/? [R=301,L]<\/code><\/pre>\n<p>\u0417\u043d\u0430\u043a \u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0432 \u043a\u0456\u043d\u0446\u0456 \u0446\u0456\u043b\u0456 \u0432\u0456\u0434\u043a\u0438\u0434\u0430\u0454 \u0432\u0438\u0445\u0456\u0434\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u2014 \u0431\u0435\u0437 \u043d\u044c\u043e\u0433\u043e \u0432\u0456\u043d \u043f\u0440\u0438\u043a\u043b\u0435\u0457\u0442\u044c\u0441\u044f \u0434\u043e \u043d\u043e\u0432\u043e\u0457 \u0430\u0434\u0440\u0435\u0441\u0438.<\/p>\n<h2 id=\"te-same-na-nginx\">\u0422\u0435 \u0441\u0430\u043c\u0435 \u043d\u0430 nginx<\/h2>\n<p>\u0423 nginx \u043d\u0435\u043c\u0430\u0454 <code>.htaccess<\/code>: \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0436\u0438\u0432\u0443\u0442\u044c \u0443 \u043a\u043e\u043d\u0444\u0456\u0433\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0439 \u0437\u0430\u0441\u0442\u043e\u0441\u043e\u0432\u0443\u044e\u0442\u044c\u0441\u044f \u043f\u0456\u0441\u043b\u044f <code>nginx -t<\/code> \u0442\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f.<\/p>\n<pre><code>server {\n    listen 80;\n    server_name www.site.com site.com;\n    return 301 https:\/\/site.com$request_uri;\n}\n\n# \u043e\u0434\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u043d\u0430 \u0456\u043d\u0448\u0443\nlocation = \/old-page\/ {\n    return 301 https:\/\/site.com\/new-page\/;\n}\n\n# \u0440\u043e\u0437\u0434\u0456\u043b \u043d\u0430 \u0440\u043e\u0437\u0434\u0456\u043b\nrewrite ^\/blog\/(.*)$ \/news\/$1 permanent;<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0456\u044f <code>return 301<\/code> \u0448\u0432\u0438\u0434\u0448\u0430 \u0437\u0430 <code>rewrite<\/code> \u0439 \u0447\u0438\u0442\u0430\u0454\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e, \u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0456\u0432 \u0431\u0435\u0440\u0443\u0442\u044c \u0441\u0430\u043c\u0435 \u0457\u0457.<\/p>\n<h2 id=\"chasti-pomilki\">\u0427\u0430\u0441\u0442\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438<\/h2>\n<figure><svg viewbox=\"0 0 900 290\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"\u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0432 \u043f\u0440\u043e\u0442\u0438\u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430\" style=\"width:100%;height:auto;max-width:900px;display:block;margin:0 auto 20px\"><text fill=\"#848484\" letter-spacing=\"1px\" font-weight=\"400\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"20\" y=\"30\">\u0422\u0410\u041a \u0411\u0423\u0412\u0410\u0404: \u0427\u041e\u0422\u0418\u0420\u0418 \u041f\u0415\u0420\u0415\u0425\u041e\u0414\u0418 \u0417\u0410\u041c\u0406\u0421\u0422\u042c \u041e\u0414\u041d\u041e\u0413\u041e<\/text><rect fill=\"#1E1618\" stroke=\"#5A3B40\" stroke-width=\"1\" x=\"20\" y=\"48\" width=\"180\" height=\"48\" rx=\"2\"><\/rect><text fill=\"#CBCBCB\" font-weight=\"300\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"36\" y=\"78\">http:\/\/www.site.com<\/text><path stroke=\"#7A5057\" stroke-width=\"1.5\" fill=\"none\" d=\"M200 72 h36 m-10 -5 l10 5 l-10 5\"><\/path><rect fill=\"#1E1618\" stroke=\"#5A3B40\" stroke-width=\"1\" x=\"236\" y=\"48\" width=\"160\" height=\"48\" rx=\"2\"><\/rect><text fill=\"#CBCBCB\" font-weight=\"300\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"252\" y=\"78\">http:\/\/site.com<\/text><path stroke=\"#7A5057\" stroke-width=\"1.5\" fill=\"none\" d=\"M396 72 h36 m-10 -5 l10 5 l-10 5\"><\/path><rect fill=\"#1E1618\" stroke=\"#5A3B40\" stroke-width=\"1\" x=\"432\" y=\"48\" width=\"170\" height=\"48\" rx=\"2\"><\/rect><text fill=\"#CBCBCB\" font-weight=\"300\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"448\" y=\"78\">https:\/\/site.com<\/text><path stroke=\"#7A5057\" stroke-width=\"1.5\" fill=\"none\" d=\"M602 72 h36 m-10 -5 l10 5 l-10 5\"><\/path><rect fill=\"#1E1618\" stroke=\"#5A3B40\" stroke-width=\"1\" x=\"638\" y=\"48\" width=\"242\" height=\"48\" rx=\"2\"><\/rect><text fill=\"#CBCBCB\" font-weight=\"300\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"654\" y=\"78\">https:\/\/site.com\/page\/<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"20\" y=\"124\">\u041a\u043e\u0436\u0435\u043d \u043a\u0440\u043e\u043a \u2014 \u043e\u043a\u0440\u0435\u043c\u0438\u0439 \u0437\u0430\u043f\u0438\u0442: \u0434\u043e\u0432\u0448\u0435 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f, \u0447\u0430\u0441\u0442\u0438\u043d\u0430 \u0432\u0430\u0433\u0438 \u0433\u0443\u0431\u0438\u0442\u044c\u0441\u044f, \u0440\u043e\u0431\u043e\u0442 \u0432\u0438\u0442\u0440\u0430\u0447\u0430\u0454 \u043b\u0456\u043c\u0456\u0442 \u043e\u0431\u0445\u043e\u0434\u0443<\/text><text fill=\"#848484\" letter-spacing=\"1px\" font-weight=\"400\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"20\" y=\"176\">\u042f\u041a \u0422\u0420\u0415\u0411\u0410: \u041e\u0414\u041d\u0415 \u041f\u0420\u0410\u0412\u0418\u041b\u041e, \u041e\u0414\u0418\u041d \u041f\u0415\u0420\u0415\u0425\u0406\u0414<\/text><rect fill=\"#15202A\" stroke=\"#30738E\" stroke-width=\"1\" x=\"20\" y=\"194\" width=\"180\" height=\"48\" rx=\"2\"><\/rect><text fill=\"#CBCBCB\" font-weight=\"300\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"36\" y=\"224\">http:\/\/www.site.com<\/text><path stroke=\"#30738E\" stroke-width=\"1.5\" fill=\"none\" d=\"M200 218 h420 m-12 -6 l12 6 l-12 6\"><\/path><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"330\" y=\"208\">\u043e\u0434\u0438\u043d 301<\/text><rect fill=\"#15202A\" stroke=\"#30738E\" stroke-width=\"1\" x=\"620\" y=\"194\" width=\"260\" height=\"48\" rx=\"2\"><\/rect><text fill=\"#CBCBCB\" font-weight=\"300\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"636\" y=\"224\">https:\/\/site.com\/page\/<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"20\" y=\"272\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u0456\u0454\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e: curl -sIL https:\/\/site.com\/page\/ \u2014 \u0443 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043c\u0430\u0454 \u0431\u0443\u0442\u0438 \u0440\u0456\u0432\u043d\u043e \u043e\u0434\u0438\u043d 301<\/text><\/svg><figcaption>\u041b\u0430\u043d\u0446\u044e\u0436\u043e\u043a \u0456\u0437 \u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0456\u0432 \u0456 \u0442\u0435, \u044f\u043a \u043c\u0430\u0454 \u0431\u0443\u0442\u0438<\/figcaption><\/figure>\n<ul>\n<li><strong>\u041b\u0430\u043d\u0446\u044e\u0436\u043e\u043a \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0456\u0432.<\/strong> www \u2192 \u0431\u0435\u0437 www \u2192 https \u2192 \u0441\u043b\u0435\u0448: \u0447\u043e\u0442\u0438\u0440\u0438 \u0437\u0430\u043f\u0438\u0442\u0438 \u0437\u0430\u043c\u0456\u0441\u0442\u044c \u043e\u0434\u043d\u043e\u0433\u043e. \u0417\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0443\u043c\u043e\u0432\u0438 \u0432 \u043e\u0434\u043d\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e.<\/li>\n<li><strong>\u0426\u0438\u043a\u043b.<\/strong> \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0432\u0456\u0434\u043f\u0440\u0430\u0432\u043b\u044f\u0454 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 \u0441\u0430\u043c\u0443 \u043d\u0430 \u0441\u0435\u0431\u0435, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e\u043a\u0430\u0437\u0443\u0454 <code>ERR_TOO_MANY_REDIRECTS<\/code>. \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 HTTPS \u0437\u0430 \u043f\u0440\u043e\u043a\u0441\u0456 \u0447\u0435\u0440\u0435\u0437 <code>%{HTTPS}<\/code>.<\/li>\n<li><strong>302 \u0437\u0430\u043c\u0456\u0441\u0442\u044c 301.<\/strong> \u041f\u0435\u0440\u0435\u0457\u0437\u0434 \u0437\u0440\u043e\u0431\u043b\u0435\u043d\u043e, \u0430 \u0432\u0430\u0433\u0430 \u043b\u0438\u0448\u0438\u043b\u0430\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u0456\u0439 \u0430\u0434\u0440\u0435\u0441\u0456.<\/li>\n<li><strong>\u0423\u0441\u0435 \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u0443.<\/strong> \u041c\u0430\u0441\u043e\u0432\u0438\u0439 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0441\u043e\u0442\u0435\u043d\u044c \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a \u0443 \u043a\u043e\u0440\u0456\u043d\u044c \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u0438\u043a \u0432\u0432\u0430\u0436\u0430\u0454 \u043f\u0456\u0434\u043c\u0456\u043d\u043e\u044e 404.<\/li>\n<li><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0456\u0441\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b CMS.<\/strong> \u0423 <code>.htaccess<\/code> WordPress \u043f\u0435\u0440\u0435\u0445\u043e\u043f\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0442 \u043f\u0435\u0440\u0448\u0438\u043c, \u0456 \u0432\u0430\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0435 \u0441\u043f\u0440\u0430\u0446\u044e\u0454: \u0441\u0442\u0430\u0432\u0442\u0435 \u0441\u0432\u0456\u0439 \u0431\u043b\u043e\u043a \u0432\u0438\u0449\u0435.<\/li>\n<li><strong>\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0437\u0430\u043c\u0456\u0441\u0442\u044c canonical.<\/strong> \u042f\u043a\u0449\u043e \u043e\u0431\u0438\u0434\u0432\u0456 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0456 \u043b\u044e\u0434\u044f\u043c, \u0430 \u0434\u0443\u0431\u043b\u044e\u0454\u0442\u044c\u0441\u044f \u043b\u0438\u0448\u0435 \u0432\u043c\u0456\u0441\u0442, \u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c <code>rel=\"canonical\"<\/code>, \u0430 \u043d\u0435 301.<\/li>\n<li><strong>\u0417\u0430\u0431\u0443\u0442\u0456 \u0432\u043d\u0443\u0442\u0440\u0456\u0448\u043d\u0456 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f.<\/strong> \u041f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0457\u0437\u0434\u0443 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456 \u0441\u0430\u0439\u0442\u0443 \u043c\u0430\u044e\u0442\u044c \u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u043d\u043e\u0432\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443, \u0456\u043d\u0430\u043a\u0448\u0435 \u043a\u043e\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0445\u0456\u0434 \u0432\u0456\u0434\u0432\u0456\u0434\u0443\u0432\u0430\u0447\u0430 \u0439\u0434\u0435 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442.<\/li>\n<\/ul>\n<h2 id=\"yak-pereviriti\">\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438<\/h2>\n<p>\u041d\u0430\u0439\u0448\u0432\u0438\u0434\u0448\u0435 \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u044e \u0432 \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u0456. \u041a\u043b\u044e\u0447 <code>-I<\/code> \u0437\u0430\u043f\u0438\u0442\u0443\u0454 \u043b\u0438\u0448\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, <code>-L<\/code> \u0456\u0434\u0435 \u043b\u0430\u043d\u0446\u044e\u0436\u043a\u043e\u043c \u0434\u043e \u043a\u0456\u043d\u0446\u044f:<\/p>\n<pre><code>curl -sIL https:\/\/site.com\/old-page\/ | grep -E \"HTTP\/|Location\"<\/code><\/pre>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0454 \u0442\u0430\u043a: \u043e\u0434\u0438\u043d <code>HTTP\/1.1 301<\/code>, \u043e\u0434\u0438\u043d <code>Location<\/code> \u0456 \u0434\u0430\u043b\u0456 <code>HTTP\/2 200<\/code>. \u0414\u0432\u0430 \u0439 \u0431\u0456\u043b\u044c\u0448\u0435 301 \u043f\u043e\u0441\u043f\u0456\u043b\u044c \u2014 \u0446\u0435 \u043b\u0430\u043d\u0446\u044e\u0436\u043e\u043a, \u0439\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0430 \u0441\u0445\u043b\u043e\u043f\u043d\u0443\u0442\u0438. \u0423 Search Console \u0442\u043e\u0439 \u0441\u0430\u043c\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0438\u0434\u043d\u043e \u0443 \u0437\u0432\u0456\u0442\u0456 \u00ab\u0406\u043d\u0434\u0435\u043a\u0441\u0443\u0432\u0430\u043d\u043d\u044f \u0441\u0442\u043e\u0440\u0456\u043d\u043e\u043a\u00bb, \u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456 \u2014 \u0443 \u0432\u043a\u043b\u0430\u0434\u0446\u0456 Network, \u044f\u043a\u0449\u043e \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u00abPreserve log\u00bb.<\/p>\n<p>\u041f\u0456\u0441\u043b\u044f \u043c\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0457\u0437\u0434\u0443 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0432\u0438\u0431\u0456\u0440\u043a\u0443 \u0437 \u0434\u0432\u043e\u0445-\u0442\u0440\u044c\u043e\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u0456\u0432 \u0430\u0434\u0440\u0435\u0441: \u0433\u043e\u043b\u043e\u0432\u043d\u0443, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0456\u0457, \u043a\u0430\u0440\u0442\u043a\u0438, \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0439 \u0430\u0434\u0440\u0435\u0441\u0438 \u0437 \u0442\u043e\u043f\u0443 \u043f\u043e\u0448\u0443\u043a\u043e\u0432\u043e\u0457 \u0432\u0438\u0434\u0430\u0447\u0456.<\/p>\n<h2 id=\"korotko-pro-golovne\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043f\u0440\u043e \u0433\u043e\u043b\u043e\u0432\u043d\u0435<\/h2>\n<p>301 \u2014 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0456\u0439\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0457\u0437\u0434\u0443, 302 \u2014 \u0434\u043b\u044f \u0442\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u043e\u0433\u043e, 410 \u2014 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u043e\u0433\u043e \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435\u043c\u0430\u0454. \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0438\u0448\u0435\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u0435 \u0439 \u0432\u0435\u0434\u0435 \u043e\u0434\u0440\u0430\u0437\u0443 \u043d\u0430 \u043a\u0456\u043d\u0446\u0435\u0432\u0443 \u0430\u0434\u0440\u0435\u0441\u0443, \u0431\u0435\u0437 \u043f\u0440\u043e\u043c\u0456\u0436\u043d\u0438\u0445 \u043a\u0440\u043e\u043a\u0456\u0432. \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0442\u0438 \u0442\u0440\u0435\u0431\u0430 \u0437\u0430\u0432\u0436\u0434\u0438 \u2014 <code>curl -sIL<\/code> \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 \u043d\u0430 \u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p>\u042f\u043a\u0449\u043e \u043f\u0435\u0440\u0435\u0457\u0437\u0434 \u0432\u0435\u043b\u0438\u043a\u0438\u0439 \u2014 \u0437\u043c\u0456\u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0443, \u043e\u0431\u2019\u0454\u0434\u043d\u0430\u043d\u043d\u044f \u0441\u0430\u0439\u0442\u0456\u0432, \u043f\u0435\u0440\u0435\u0445\u0456\u0434 \u043d\u0430 HTTPS \u0456\u0437 \u043f\u0435\u0440\u0435\u0431\u0443\u0434\u043e\u0432\u043e\u044e \u0430\u0434\u0440\u0435\u0441 \u2014 <a href=\"https:\/\/webmister.pro\/uk\/contacts\/\">\u043d\u0430\u043f\u0438\u0448\u0456\u0442\u044c \u043d\u0430\u043c<\/a>: \u0441\u043a\u043b\u0430\u0434\u0435\u043c\u043e \u043a\u0430\u0440\u0442\u0443 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e\u0441\u0442\u0435\u0439 \u0456 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043c\u043e \u0442\u0430\u043a, \u0449\u043e\u0431 \u0442\u0440\u0430\u0444\u0456\u043a \u043b\u0438\u0448\u0438\u0432\u0441\u044f \u043d\u0430 \u043c\u0456\u0441\u0446\u0456.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0413\u043e\u0442\u043e\u0432\u0456 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0434\u043b\u044f .htaccess \u0456 nginx: \u0441\u043a\u043b\u0435\u0439\u043a\u0430 \u0434\u0437\u0435\u0440\u043a\u0430\u043b, \u043f\u0435\u0440\u0435\u0445\u0456\u0434 \u043d\u0430 HTTPS, \u0441\u043b\u0435\u0448 \u0443 \u043a\u0456\u043d\u0446\u0456, \u043f\u0435\u0440\u0435\u0457\u0437\u0434 \u0434\u043e\u043c\u0435\u043d\u0443 \u2014 \u0456 \u0440\u043e\u0437\u0431\u0456\u0440 \u043f\u043e\u043c\u0438\u043b\u043e\u043a, \u0447\u0435\u0440\u0435\u0437 \u044f\u043a\u0456 \u0432\u0442\u0440\u0430\u0447\u0430\u0454\u0442\u044c\u0441\u044f \u0442\u0440\u0430\u0444\u0456\u043a.<\/p>\n","protected":false},"author":1,"featured_media":12026,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[217],"tags":[],"class_list":["post-11999","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html-css-uk"],"acf":[],"_links":{"self":[{"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/posts\/11999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/comments?post=11999"}],"version-history":[{"count":0,"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/posts\/11999\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/media\/12026"}],"wp:attachment":[{"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/media?parent=11999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/categories?post=11999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webmister.pro\/uk\/wp-json\/wp\/v2\/tags?post=11999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}