{"id":3593,"date":"2013-07-18T12:26:28","date_gmt":"2013-07-18T09:26:28","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3593"},"modified":"2015-01-16T11:44:29","modified_gmt":"2015-01-16T09:44:29","slug":"apache-rewrite-url-%d0%bd%d0%b0-%d0%b4%d1%80%d1%83%d0%b3%d0%be%d0%b9-%d0%b4%d0%be%d0%bc%d0%b5%d0%bd-%d1%81-%d0%b8%d1%81%d0%ba%d0%bb%d1%8e%d1%87%d0%b5%d0%bd%d0%b8%d0%b5%d0%bc","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3593","title":{"rendered":"[apache] rewrite url \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u043e\u043c\u0435\u043d \u0441 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c"},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: URL \u0432\u0438\u0434\u0430 <strong>http:\/\/domain.com\/URI<\/strong> \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u00a0<strong>http:\/\/otherdomain.org\/URI<\/strong> \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c <strong>URI<\/strong>. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, <strong>URL<\/strong> \u0432\u0438\u0434\u0430\u00a0<strong>http:\/\/domain.com\/lists*<\/strong> \u043d\u0435 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0442\u044c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0435 (2 \u0431\u043b\u043e\u043a\u0430 = \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0431\u0435\u0437 <strong>www<\/strong>, \u0432\u0442\u043e\u0440\u043e\u0439 &#8211; \u0441 <strong>www<\/strong>):<\/p>\n<p><code>RewriteCond %{REQUEST_URI} !^\/lists(.+)$<br \/>\nRewriteCond %{HTTP_HOST} ^domain.com [NC]<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule ^(.*)$ http:\/\/otherdomain.org\/$1 [R=301,L]<\/code><\/p>\n<p><code>RewriteCond %{REQUEST_URI} !^\/lists(.+)$<br \/>\nRewriteCond %{HTTP_HOST} ^www.domain.com [NC]<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule ^(.*)$ http:\/\/www.otherdomain.org\/$1 [R=301,L]<\/code><\/p>\n<p>\u0410 \u0432\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 <strong>http:\/\/domain.com\/page\/URI -&gt; http:\/\/otherdomain.com\/URI<\/strong> (\u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0430 \u0444\u0430\u0439\u043b <strong>\/page\/.htaccess<\/strong> \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u043d\u044f \u0441\u0430\u0439\u0442\u0430):<\/p>\n<p><code>RewriteEngine On<br \/>\nRewriteRule ^(.*)$ http:\/\/otherdomain.org\/$1 [R=301,L]<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: URL \u0432\u0438\u0434\u0430 http:\/\/domain.com\/URI \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u00a0http:\/\/otherdomain.org\/URI \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c URI. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, URL \u0432\u0438\u0434\u0430\u00a0http:\/\/domain.com\/lists* \u043d\u0435 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0442\u044c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0435 (2 \u0431\u043b\u043e\u043a\u0430 = \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0431\u0435\u0437 www, \u0432\u0442\u043e\u0440\u043e\u0439 &#8211; \u0441 www): RewriteCond %{REQUEST_URI} !^\/lists(.+)$ RewriteCond %{HTTP_HOST} ^domain.com [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http:\/\/otherdomain.org\/$1 [R=301,L] RewriteCond %{REQUEST_URI} !^\/lists(.+)$ RewriteCond %{HTTP_HOST} ^www.domain.com [NC] RewriteCond %{REQUEST_FILENAME} [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-3593","post","type-post","status-publish","format-standard","hentry","category-www"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3593"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3593\/revisions"}],"predecessor-version":[{"id":4646,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3593\/revisions\/4646"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}