{"id":562,"date":"2019-12-19T09:42:48","date_gmt":"2019-12-19T03:42:48","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=562"},"modified":"2019-12-19T09:44:10","modified_gmt":"2019-12-19T03:44:10","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-%d1%80%d0%b5%d0%b4%d0%b8%d1%80%d0%b5%d0%ba%d1%82%d0%b0-%d1%87%d0%b5%d1%80%d0%b5%d0%b7-htaccess","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=562","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437   .htaccess"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"3\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437  <strong> .htaccess<\/strong> <\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>  1.  \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432\u0430\u0448\u0443 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u043e\u043c.  <\/li><li>  2.  \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0444\u0430\u0439\u043b<strong> .htaccess<\/strong>.  \u041e\u043d\u00a0\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432\u00a0\u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0441\u0430\u0439\u0442\u0430. \u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b .htaccess \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442,  \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e.  <\/li><li>\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043f\u043e\u00a0\u0441\u0442\u0440\u043e\u043a\u0435, \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 <strong>\u043a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u0430. <\/strong>\u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043f\u043e\u00a0\u0444\u0430\u0439\u043b\u0443 .htaccess \u0438\u00a0\u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u00a0\u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0443\u043d\u043a\u0442 <strong>\u041e\u0442\u043a\u0440\u044b\u0442\u044c\/\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c<\/strong>:                          <\/li><li>  3.  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432\u00a0\u043a\u043e\u043d\u0446\u0435 \u0444\u0430\u0439\u043b\u0430 <strong>.htaccess<\/strong> \u043e\u0434\u043d\u043e \u0438\u0437\u00a0\u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f\u00a0\u0432\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f:    <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441\u00a0<strong>http:\/\/ \u043d\u0430\u00a0https:\/\/<\/strong>, \u0432\u00a0\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438\u00a0\u0441 <strong>http:\/\/www \u043d\u0430\u00a0https:\/\/<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0430\u0440\u0438\u0430\u043d\u0442 1          <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule .* https:\/\/%{SERVER_NAME}%{REQUEST_URI} [R=301,L]<\/code> <\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0438\u043b\u0438\u00a0\u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0432\u0442\u043e\u0440\u044b\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u043c (\u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0435\u00a0\u043f\u043e\u043c\u043e\u0436\u0435\u0442):\u0412\u0430\u0440\u0438\u0430\u043d\u0442 2  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On\nRewriteCond %{HTTPS} =off \nRewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI} [QSA,L]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043d\u0435\u00a0\u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0438\u00a0\u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 <strong>\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f<\/strong>, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0430\u0440\u0438\u0430\u043d\u0442 3  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On\nRewriteCond %{HTTPS} off\nRewriteCond %{HTTP:X-Forwarded-Proto} !https\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\n \n\u0412\u0430\u0440\u0438\u0430\u043d\u0442 4\n <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On \nRewriteCond %{ENV:HTTPS} !on \nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430\u00a0HTTPS \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b    <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043d\u0438\u0436\u0435 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f\u00a0\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <strong>login.php<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0430\u0440\u0438\u0430\u043d\u0442 1  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On\nRewriteCond %{HTTPS} =off\nRewriteCond %{REQUEST_URI} =\/login.php\nRewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI} [QSA,L]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412\u0430\u0440\u0438\u0430\u043d\u0442 2  <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On\nRewriteCond %{SERVER_PORT} !^443$\nRewriteCond %{REQUEST_URI} =\/login.php\nRewriteRule .* https:\/\/%{SERVER_NAME}%{REQUEST_URI} [R,L]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430\u00a0\u0441\u0430\u0439\u0442 HTTPS \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u043a\u0440\u043e\u043c\u0435 \u043e\u0434\u043d\u043e\u0439    <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412&nbsp;\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0438\u0436\u0435 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f&nbsp;\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <strong>test.php<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>RewriteEngine On\nRewriteCond %{HTTPS} =off\nRewriteCond %{REQUEST_URI} !^\/test.php\nRewriteRule (.*) https:\/\/%{HTTP_HOST}%{REQUEST_URI} [QSA,L]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.   <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0413\u043e\u0442\u043e\u0432\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u00a0\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTPS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 .htaccess 1. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0432\u0430\u0448\u0443 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u043e\u043c. 2. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0444\u0430\u0439\u043b .htaccess. \u041e\u043d\u00a0\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u0432\u00a0\u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0441\u0430\u0439\u0442\u0430. \u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b .htaccess \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e. \u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043f\u043e\u00a0\u0441\u0442\u0440\u043e\u043a\u0435, \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u043a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u0430. \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 \u043f\u043e\u00a0\u0444\u0430\u0439\u043b\u0443 .htaccess \u0438\u00a0\u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u00a0\u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u043f\u0443\u043d\u043a\u0442 \u041e\u0442\u043a\u0440\u044b\u0442\u044c\/\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c: 3. \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432\u00a0\u043a\u043e\u043d\u0446\u0435 \u0444\u0430\u0439\u043b\u0430 .htaccess \u043e\u0434\u043d\u043e \u0438\u0437\u00a0\u043f\u0440\u0430\u0432\u0438\u043b, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f\u00a0\u0432\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f: \u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=562\" title=\"\u0447\u0438\u0442\u0430\u0442\u044c...\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,15],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-faq---vps-vds","category-k-faq----"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=562"}],"version-history":[{"count":2,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":564,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions\/564"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}