{"id":5136,"date":"2026-10-28T21:01:35","date_gmt":"2026-10-28T18:01:35","guid":{"rendered":"https:\/\/webmister.pro\/?p=5136"},"modified":"2026-10-28T21:01:35","modified_gmt":"2026-10-28T18:01:35","slug":"301-redirekt-cherez-htaccess-primery","status":"publish","type":"post","link":"https:\/\/webmister.pro\/ru\/301-redirekt-cherez-htaccess-primery\/","title":{"rendered":"301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 .htaccess: \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430"},"content":{"rendered":"<p>301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u2014 \u044d\u0442\u043e \u043e\u0442\u0432\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443 \u0438 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u043c\u0443 \u0440\u043e\u0431\u043e\u0442\u0443: \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0430 \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430, \u0432\u043e\u0442 \u0435\u0451 \u043d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. \u041e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u00ab\u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0443\u0442\u044c\u00bb \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f \u043e\u043d \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0434\u0440\u0435\u0441, \u043d\u043e \u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0441 \u0441\u0441\u044b\u043b\u043e\u043a. \u041d\u0438\u0436\u0435 \u2014 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f <code>.htaccess<\/code> \u043f\u043e\u0434 \u0442\u0438\u043f\u043e\u0432\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0434\u043b\u044f nginx \u0438 \u0440\u0430\u0437\u0431\u043e\u0440 \u043e\u0448\u0438\u0431\u043e\u043a, \u0438\u0437-\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0441\u0442\u043e\u0438\u0442 \u0441\u0430\u0439\u0442\u0443 \u0442\u0440\u0430\u0444\u0438\u043a\u0430.<\/p>\n<nav class=\"wppub-toc\" aria-label=\"\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\">\n<p class=\"wppub-toc__title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/p>\n<ul class=\"wppub-toc__list\">\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#kak-eto-rabotaet\">\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/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-stranitsa-na-druguyu\">\u041e\u0434\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#skleyka-zerkal-s-www-na-bez-www\">\u0421\u043a\u043b\u0435\u0439\u043a\u0430 \u0437\u0435\u0440\u043a\u0430\u043b: \u0441 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=\"#perehod-na-https\">\u041f\u0435\u0440\u0435\u0445\u043e\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 \u0438 \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-na-kontse-adresa\">\u0421\u043b\u0435\u0448 \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u0430\u0434\u0440\u0435\u0441\u0430<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#pereezd-na-novyy-domen\">\u041f\u0435\u0440\u0435\u0435\u0437\u0434 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d<\/a><\/li>\n<li class=\"wppub-toc__item wppub-toc__item--sub\"><a class=\"wppub-toc__link\" href=\"#razdel-na-razdel-i-adresa-s-parametrami\">\u0420\u0430\u0437\u0434\u0435\u043b \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b \u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u0441 \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=\"#to-zhe-samoe-na-nginx\">\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043d\u0430 nginx<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#chastye-oshibki\">\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#kak-proverit\">\u041a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c<\/a><\/li>\n<li class=\"wppub-toc__item\"><a class=\"wppub-toc__link\" href=\"#korotko-o-glavnom\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e \u0433\u043b\u0430\u0432\u043d\u043e\u043c<\/a><\/li>\n<\/ul>\n<\/nav>\n<h2 id=\"kak-eto-rabotaet\">\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h2>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043e\u0434\u043e\u043c 301 \u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c <code>Location<\/code> \u0441 \u043d\u043e\u0432\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u043c. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0441\u0440\u0430\u0437\u0443 \u0443\u0445\u043e\u0434\u0438\u0442 \u0442\u0443\u0434\u0430, \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f, \u0438 \u043a\u0435\u0448\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434. \u041f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0442\u0430\u043a \u0436\u0435: \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u0441\u0442\u0430\u0440\u044b\u0439 URL \u043d\u043e\u0432\u044b\u043c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0435\u043c\u0443 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u044b\u0439 \u0432\u0435\u0441.<\/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 \u0438\u043b\u0438 \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\u0440\u043e\u0441<\/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 \u0438\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\u043e\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\u044b\u0439 \u0430\u0434\u0440\u0435\u0441<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"702\" y=\"100\">200 OK, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0430<\/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\">\u0427\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430<\/text><text fill=\"#848484\" font-weight=\"300\" font-size=\"13px\" font-family=\"Roboto, Arial, sans-serif\" x=\"44\" y=\"234\">301 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u00ab\u0430\u0434\u0440\u0435\u0441 \u0441\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430\u00bb: \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u043c \u0432\u0435\u0441\u043e\u043c \u0441\u0441\u044b\u043b\u043e\u043a.<\/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\u0435\u0442 \u00ab\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u00bb \u2014 \u0441\u0442\u0430\u0440\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435, \u0438 \u0432\u0435\u0441 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442.<\/text><\/svg><figcaption>\u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430: \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 301 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441<\/figcaption><\/figure>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u0434\u0430\u043c\u0438 \u0432\u0430\u0436\u043d\u0430 \u0438 \u0441\u0442\u043e\u0438\u0442 \u0434\u0435\u043d\u0435\u0433:<\/p>\n<div class=\"wm-table-scroll wm-table-cards\" tabindex=\"0\" role=\"region\" aria-label=\"\u0422\u0430\u0431\u043b\u0438\u0446\u0430, \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438\">\n<table>\n<thead>\n<tr>\n<th>\u041a\u043e\u0434<\/th>\n<th>\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442<\/th>\n<th>\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>301<\/strong><\/td>\n<td data-label=\"\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\">\u041f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u043e \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430<\/td>\n<td data-label=\"\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\">\u0421\u043c\u0435\u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0430, \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0441\u043a\u043b\u0435\u0439\u043a\u0430 \u0437\u0435\u0440\u043a\u0430\u043b, \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 HTTPS<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>302<\/strong><\/td>\n<td data-label=\"\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\">\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e<\/td>\n<td data-label=\"\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\">\u0410\u043a\u0446\u0438\u044f \u043d\u0430 \u043f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c, \u0442\u0435\u0445\u0440\u0430\u0431\u043e\u0442\u044b, 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=\"\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\">\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f<\/td>\n<td data-label=\"\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\">\u0422\u043e \u0436\u0435, \u043d\u043e \u0434\u043b\u044f POST-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>308<\/strong><\/td>\n<td data-label=\"\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\">\u041d\u0430\u0432\u0441\u0435\u0433\u0434\u0430, \u043c\u0435\u0442\u043e\u0434 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f<\/td>\n<td data-label=\"\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\">\u0420\u0435\u0434\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439: \u043f\u0435\u0440\u0435\u0435\u0437\u0434 API, \u0433\u0434\u0435 \u0432\u0430\u0436\u0435\u043d POST<\/td>\n<\/tr>\n<tr>\n<td data-label=\"\u041a\u043e\u0434\"><strong>410<\/strong><\/td>\n<td data-label=\"\u0427\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\">\u0423\u0434\u0430\u043b\u0435\u043d\u043e \u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430<\/td>\n<td data-label=\"\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\">\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442 \u0438 \u0437\u0430\u043c\u0435\u043d\u044b \u0435\u0439 \u043d\u0435\u0442<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041f\u0443\u0442\u0430\u0442\u044c 301 \u0438 302 \u2014 \u0441\u0430\u043c\u0430\u044f \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u044d\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435: \u043f\u0440\u0438 302 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u0441\u0442\u0430\u0440\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438 \u0432\u0435\u0441 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442.<\/p>\n<h2 id=\"pravila-dlya-htaccess\">\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f .htaccess<\/h2>\n<p>\u0412\u0441\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 Apache \u0441 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u043c <code>mod_rewrite<\/code>. \u0411\u043b\u043e\u043a \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430 <code>.htaccess<\/code> \u0432 \u043a\u043e\u0440\u043d\u0435 \u0441\u0430\u0439\u0442\u0430 \u2014 \u0434\u043e \u043f\u0440\u0430\u0432\u0438\u043b CMS, \u0438\u043d\u0430\u0447\u0435 WordPress \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<pre><code>RewriteEngine On\nRewriteBase \/<\/code><\/pre>\n<h3 id=\"odna-stranitsa-na-druguyu\">\u041e\u0434\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e<\/h3>\n<pre><code># \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\nRedirect 301 \/old-page\/ https:\/\/site.com\/new-page\/\n\n# \u0442\u043e\u0442 \u0436\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0447\u0435\u0440\u0435\u0437 mod_rewrite, \u0435\u0441\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0442\u043e\u0436\u0435 \u043d\u0430 \u043d\u0451\u043c\nRewriteRule ^old-page\/?$ https:\/\/site.com\/new-page\/ [R=301,L]<\/code><\/pre>\n<h3 id=\"skleyka-zerkal-s-www-na-bez-www\">\u0421\u043a\u043b\u0435\u0439\u043a\u0430 \u0437\u0435\u0440\u043a\u0430\u043b: \u0441 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>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0437\u0435\u0440\u043a\u0430\u043b\u043e\u043c \u0432\u044b\u0431\u0440\u0430\u043d \u0434\u043e\u043c\u0435\u043d \u0441 www:<\/p>\n<pre><code>RewriteCond %{HTTP_HOST} !^www. [NC]\nRewriteRule ^(.*)$ https:\/\/www.%{HTTP_HOST}\/$1 [R=301,L]<\/code><\/pre>\n<h3 id=\"perehod-na-https\">\u041f\u0435\u0440\u0435\u0445\u043e\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 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u043e\u043a\u0441\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code>%{HTTPS}<\/code> \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0434\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043e\u0445\u043e\u0434\u0438\u0442 \u0443\u0436\u0435 \u043f\u043e HTTP. \u0422\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \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 \u0438 \u0431\u0435\u0437 www \u043e\u0434\u043d\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u0440\u0438\u0451\u043c \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430: \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0434\u0440\u044f\u0434, \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\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-na-kontse-adresa\">\u0421\u043b\u0435\u0448 \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u0430\u0434\u0440\u0435\u0441\u0430<\/h3>\n<pre><code># \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \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# \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u043b\u0435\u0448\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule ^(.*)\/$ \/$1 [R=301,L]<\/code><\/pre>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0441 <code>!-f<\/code> \u0438 <code>!-d<\/code> \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c: \u0431\u0435\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0430\u0447\u043d\u0451\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u043f\u043e\u043a.<\/p>\n<h3 id=\"pereezd-na-novyy-domen\">\u041f\u0435\u0440\u0435\u0435\u0437\u0434 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c\u0435\u043d<\/h3>\n<pre><code># \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u2014 \u0442\u0430\u043a \u0438 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c\nRewriteCond %{HTTP_HOST} ^(www.)?old-site.com$ [NC]\nRewriteRule ^(.*)$ https:\/\/new-site.com\/$1 [R=301,L]\n\n# \u0432\u0441\u0451 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f\nRewriteRule ^(.*)$ https:\/\/new-site.com\/ [R=301,L]<\/code><\/pre>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u00ab\u043c\u044f\u0433\u043a\u043e\u0439 404\u00bb \u0438 \u0432\u0435\u0441 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442. \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0432 \u0430\u0434\u0440\u0435\u0441 \u0432\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0430 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0435\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u044b \u043d\u0435\u0442.<\/p>\n<h3 id=\"razdel-na-razdel-i-adresa-s-parametrami\">\u0420\u0430\u0437\u0434\u0435\u043b \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b \u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438<\/h3>\n<pre><code># \/blog\/\u0441\u0442\u0430\u0442\u044c\u044f\/ \u2192 \/news\/\u0441\u0442\u0430\u0442\u044c\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 \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0446\u0435\u043b\u0438 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u2014 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u043e\u043d\u0430 \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u0442\u0441\u044f \u043a \u043d\u043e\u0432\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443.<\/p>\n<h2 id=\"to-zhe-samoe-na-nginx\">\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043d\u0430 nginx<\/h2>\n<p>\u0423 nginx \u043d\u0435\u0442 <code>.htaccess<\/code>: \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0436\u0438\u0432\u0443\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 <code>nginx -t<\/code> \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/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\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e\nlocation = \/old-page\/ {\n    return 301 https:\/\/site.com\/new-page\/;\n}\n\n# \u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\nrewrite ^\/blog\/(.*)$ \/news\/$1 permanent;<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f <code>return 301<\/code> \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c <code>rewrite<\/code>, \u0438 \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0431\u0435\u0440\u0443\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0451.<\/p>\n<h2 id=\"chastye-oshibki\">\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\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\u042b\u0412\u0410\u0415\u0422: \u0427\u0415\u0422\u042b\u0420\u0415 \u041f\u0415\u0420\u0415\u0425\u041e\u0414\u0410 \u0412\u041c\u0415\u0421\u0422\u041e \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\u0430\u0436\u0434\u044b\u0439 \u0448\u0430\u0433 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441: \u0434\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430, \u0447\u0430\u0441\u0442\u044c \u0432\u0435\u0441\u0430 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f, \u0440\u043e\u0431\u043e\u0442 \u0442\u0440\u0430\u0442\u0438\u0442 \u043b\u0438\u043c\u0438\u0442 \u043e\u0431\u0445\u043e\u0434\u0430<\/text><text fill=\"#848484\" letter-spacing=\"1px\" font-weight=\"400\" font-size=\"14px\" font-family=\"Roboto, Arial, sans-serif\" x=\"20\" y=\"176\">\u041a\u0410\u041a \u041d\u0410\u0414\u041e: \u041e\u0414\u041d\u041e \u041f\u0420\u0410\u0412\u0418\u041b\u041e, \u041e\u0414\u0418\u041d \u041f\u0415\u0420\u0415\u0425\u041e\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\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439: curl -sIL https:\/\/site.com\/page\/ \u2014 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d 301<\/text><\/svg><figcaption>\u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432 \u0438 \u0442\u043e, \u043a\u0430\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c<\/figcaption><\/figure>\n<ul>\n<li><strong>\u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0432.<\/strong> www \u2192 \u0431\u0435\u0437 www \u2192 https \u2192 \u0441\u043b\u0435\u0448: \u0447\u0435\u0442\u044b\u0440\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0434\u043d\u043e\u0433\u043e. \u0421\u043e\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432 \u043e\u0434\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e.<\/li>\n<li><strong>\u0426\u0438\u043a\u043b.<\/strong> \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0430\u043c\u043e \u043d\u0430 \u0441\u0435\u0431\u044f, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 <code>ERR_TOO_MANY_REDIRECTS<\/code>. \u041e\u0431\u044b\u0447\u043d\u043e \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\u0438 \u043f\u043e <code>%{HTTPS}<\/code>.<\/li>\n<li><strong>302 \u0432\u043c\u0435\u0441\u0442\u043e 301.<\/strong> \u041f\u0435\u0440\u0435\u0435\u0437\u0434 \u0441\u0434\u0435\u043b\u0430\u043d, \u0430 \u0432\u0435\u0441 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0435.<\/li>\n<li><strong>\u0412\u0441\u0451 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e.<\/strong> \u041c\u0430\u0441\u0441\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0441\u043e\u0442\u0435\u043d \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0432 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u043e\u0434\u043c\u0435\u043d\u043e\u0439 404.<\/li>\n<li><strong>\u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b CMS.<\/strong> \u0412 <code>.htaccess<\/code> WordPress \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0435\u0440\u0432\u044b\u043c, \u0438 \u0432\u0430\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442: \u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u0439 \u0431\u043b\u043e\u043a \u0432\u044b\u0448\u0435.<\/li>\n<li><strong>\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0432\u043c\u0435\u0441\u0442\u043e canonical.<\/strong> \u0415\u0441\u043b\u0438 \u043e\u0431\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0443\u0436\u043d\u044b \u043b\u044e\u0434\u044f\u043c, \u0430 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435, \u0441\u0442\u0430\u0432\u044f\u0442 <code>rel=\"canonical\"<\/code>, \u0430 \u043d\u0435 301.<\/li>\n<li><strong>\u0417\u0430\u0431\u044b\u0442\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438.<\/strong> \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0430 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u0439\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0438\u043d\u0430\u0447\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442.<\/li>\n<\/ul>\n<h2 id=\"kak-proverit\">\u041a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c<\/h2>\n<p>\u0411\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435. \u041a\u043b\u044e\u0447 <code>-I<\/code> \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, <code>-L<\/code> \u0438\u0434\u0451\u0442 \u043f\u043e \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430:<\/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\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: \u043e\u0434\u0438\u043d <code>HTTP\/1.1 301<\/code>, \u043e\u0434\u0438\u043d <code>Location<\/code> \u0438 \u0437\u0430\u0442\u0435\u043c <code>HTTP\/2 200<\/code>. \u0414\u0432\u0430 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 301 \u043f\u043e\u0434\u0440\u044f\u0434 \u2014 \u044d\u0442\u043e \u0446\u0435\u043f\u043e\u0447\u043a\u0430, \u0435\u0451 \u043d\u0443\u0436\u043d\u043e \u0441\u0445\u043b\u043e\u043f\u043d\u0443\u0442\u044c. \u0412 Search Console \u0442\u043e\u0442 \u0436\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0438\u0434\u0435\u043d \u0432 \u043e\u0442\u0447\u0451\u0442\u0435 \u00ab\u0418\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u00bb, \u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u2014 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Network, \u0435\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u00abPreserve log\u00bb.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u0438\u0437 \u0434\u0432\u0443\u0445-\u0442\u0440\u0451\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0430\u0434\u0440\u0435\u0441\u043e\u0432: \u0433\u043b\u0430\u0432\u043d\u0443\u044e, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438, \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u0437 \u0442\u043e\u043f\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u0432\u044b\u0434\u0430\u0447\u0438.<\/p>\n<h2 id=\"korotko-o-glavnom\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e \u0433\u043b\u0430\u0432\u043d\u043e\u043c<\/h2>\n<p>301 \u2014 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0430, 302 \u2014 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e, 410 \u2014 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442. \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u0438 \u0432\u0435\u0434\u0451\u0442 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u0431\u0435\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0445 \u0448\u0430\u0433\u043e\u0432. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u2014 <code>curl -sIL<\/code> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u2014 \u0441\u043c\u0435\u043d\u0430 \u0434\u043e\u043c\u0435\u043d\u0430, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441\u0430\u0439\u0442\u043e\u0432, \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 HTTPS \u0441 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u2014 <a href=\"\/ru\/contacts\/\">\u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430\u043c<\/a>: \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043a\u0430\u0440\u0442\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0439 \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043d\u0430 \u043c\u0435\u0441\u0442\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 301 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0434\u043b\u044f .htaccess \u0438 nginx: \u0441\u043a\u043b\u0435\u0439\u043a\u0430 \u0437\u0435\u0440\u043a\u0430\u043b, \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 HTTPS, \u0441\u043b\u0435\u0448 \u0432 \u043a\u043e\u043d\u0446\u0435, \u043f\u0435\u0440\u0435\u0435\u0437\u0434 \u0434\u043e\u043c\u0435\u043d\u0430 \u2014 \u0438 \u0440\u0430\u0437\u0431\u043e\u0440 \u043e\u0448\u0438\u0431\u043e\u043a, \u0438\u0437-\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0442\u0440\u0430\u0444\u0438\u043a.<\/p>\n","protected":false},"author":1,"featured_media":12024,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[27,30,23],"tags":[],"class_list":["post-5136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html-i-css","category-cms","category-seo"],"acf":[],"_links":{"self":[{"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/posts\/5136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/comments?post=5136"}],"version-history":[{"count":3,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/posts\/5136\/revisions"}],"predecessor-version":[{"id":11997,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/posts\/5136\/revisions\/11997"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/media\/12024"}],"wp:attachment":[{"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/media?parent=5136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/categories?post=5136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webmister.pro\/ru\/wp-json\/wp\/v2\/tags?post=5136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}