{"id":5869,"date":"2018-06-23T16:36:28","date_gmt":"2018-06-23T13:36:28","guid":{"rendered":"https:\/\/hackware.ru\/?p=5869"},"modified":"2018-06-25T12:16:12","modified_gmt":"2018-06-25T09:16:12","slug":"%d0%bf%d0%be%d0%bb%d0%bd%d0%be%d0%b5-%d1%80%d1%83%d0%ba%d0%be%d0%b2%d0%be%d0%b4%d1%81%d1%82%d0%b2%d0%be-%d0%bf%d0%be-mod_rewrite-%d1%87%d0%b0%d1%81%d1%82%d1%8c-7-%d0%b4%d0%b8%d1%80%d0%b5%d0%ba","status":"publish","type":"post","link":"https:\/\/hackware.ru\/?p=5869","title":{"rendered":"\u041f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e mod_rewrite (\u0447\u0430\u0441\u0442\u044c 7): \u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteMap"},"content":{"rendered":"<div class=\"576fa40ea81d72e15bb77373cb701737\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7219829351026140\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-7219829351026140\"\r\n     data-ad-slot=\"2558585710\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<h2 style=\"text-align: justify;\">\n\t<a href=\"https:\/\/hackware.ru\/?p=5900\"><span style=\"background-color:#FFFF00;\">\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435. \u041f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e mod_rewrite<\/span><\/a><br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/hackware.ru\/?p=5485\"><strong>1. \u041a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442&nbsp;mod_rewrite<\/strong><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/hackware.ru\/?p=5543\"><strong>2. \u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f&nbsp;mod_rewrite<\/strong><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong><a href=\"https:\/\/hackware.ru\/?p=5564\">3.&nbsp;\u0424\u043b\u0430\u0433\u0438 RewriteRule<\/a><\/strong>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/hackware.ru\/?p=5587\"><strong>4.&nbsp;\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteCond<\/strong><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/hackware.ru\/?p=5645\"><strong>5. \u0427\u0430\u0441\u0442\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f mod_rewrite<\/strong><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"https:\/\/hackware.ru\/?p=5676\"><strong>6.&nbsp;\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0438<\/strong><\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<a href=\"#7\"><strong>7. \u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteMap<\/strong><\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t<a href=\"#71\">7.1 \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RewriteMap, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c RewriteMap<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t<a href=\"#72\">7.2&nbsp;\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0438 .htaccess<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t<a href=\"#73\">7.3&nbsp;\u0422\u0438\u043f\u044b \u043a\u0430\u0440\u0442\u044b&nbsp;RewriteMap<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 80px;\">\n\t<a href=\"#731\">7.3.1&nbsp;int: \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 80px;\">\n\t<a href=\"#732\">7.3.2&nbsp;txt: \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u044b<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 80px;\">\n\t<a href=\"#733\">7.3.3&nbsp;rnd: \u0420\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 80px;\">\n\t<a href=\"#734\">7.3.4&nbsp;dbm: \u0445\u0435\u0448 \u0444\u0430\u0439\u043b DBH<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 80px;\">\n\t<a href=\"#735\">7.3.5&nbsp;prg: \u0412\u043d\u0435\u0448\u043d\u044f\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 80px;\">\n\t<a href=\"#736\">7.3.6&nbsp;dbd \u0438\u043b\u0438 fastdbd: SQL Query<\/a>\n<\/p>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t<a href=\"#74\">7.4 \u0420\u0435\u0437\u044e\u043c\u0435<\/a>\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>8. \u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteOptions, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0433\u0434\u0430 \u041d\u0415 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c mod_rewrite<\/strong>\n<\/p>\n<hr \/>\n<h2 style=\"text-align: justify;\">\n\t<a id=\"7\" name=\"7\"><\/a><a id=\"71\" name=\"71\"><\/a>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RewriteMap, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c RewriteMap<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\t\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteMap \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u0430\u0440\u0442\u0443 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 (Rewriting Map), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0445 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438\/\u0437\u0430\u043c\u0435\u043d\u044b \u043f\u043e\u043b\u0435\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u043a\u043b\u044e\u0447\u0443. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0422.\u0435. \u043e\u0431\u044a\u0451\u043c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e &laquo;\u043a\u0430\u0440\u0442\u0443&raquo;. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043b\u0435\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u0439 \u043a\u0430\u0440\u0442\u0435 \u043a\u0430\u043a \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c &laquo;\u043a\u0430\u0440\u0442\u043e\u0439&raquo; \u043a\u043b\u044e\u0447\u043e\u043c, \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:\n<\/p>\n<pre class=\"brush:plain;\" style=\"text-align: justify;\">\r\nRewriteMap \u0418\u043c\u044f\u041a\u0430\u0440\u0442\u044b \u0422\u0438\u043f\u041a\u0430\u0440\u0442\u044b:\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b [\u041e\u043f\u0446\u0438\u0438\u0422\u0438\u043f\u0430\u041a\u0430\u0440\u0442\u044b]<\/pre>\n<p style=\"text-align: justify;\">\n\t<strong>\u0418\u043c\u044f\u041a\u0430\u0440\u0442\u044b <\/strong>&ndash; \u044d\u0442\u043e \u0438\u043c\u044f \u043a\u0430\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f (mapping-function) \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u043f\u0440\u0430\u0432\u0438\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u043d\u0443 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439:\n<\/p>\n<pre class=\"brush:plain;\" style=\"text-align: justify;\">\r\n${ \u0418\u043c\u044f\u041a\u0430\u0440\u0442\u044b : \u041a\u043b\u044e\u0447\u0417\u0430\u043f\u0440\u043e\u0441\u0430 }\r\n${ \u0418\u043c\u044f\u041a\u0430\u0440\u0442\u044b : \u041a\u043b\u044e\u0447\u0417\u0430\u043f\u0440\u043e\u0441\u0430 | \u0414\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0435\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 }<\/pre>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f, \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0440\u0442\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong>\u0418\u043c\u044f\u041a\u0430\u0440\u0442\u044b <\/strong>\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u043a\u043b\u044e\u0447\u0443 <strong>\u041a\u043b\u044e\u0447\u0417\u0430\u043f\u0440\u043e\u0441\u0430<\/strong>. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u043d\u0430\u0439\u0434\u0435\u043d, \u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 <strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u041f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 <\/strong>(\u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0438\u0437 \u043a\u0430\u0440\u0442\u044b). \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0442\u043e\u0433\u0434\u0430 \u043e\u043d\u0430 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 <strong>\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0435\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <\/strong>\u0438\u043b\u0438 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0435\u0441\u043b\u0438 <strong>\u0414\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0435\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <\/strong>\u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e. \u041f\u0443\u0441\u0442\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0435\u0434\u0443\u0442 \u0441\u0435\u0431\u044f \u0442\u0430\u043a, \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u043a\u043b\u044e\u0447 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0441 \u043f\u0443\u0441\u0442\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u044e\u0447\u0438.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c <strong>RewriteMap <\/strong>\u0442\u0430\u043a:\n<\/p>\n<pre class=\"brush:plain;\" style=\"text-align: justify;\">\r\nRewriteMap examplemap &quot;txt:\/\u043f\u0443\u0442\u044c\/\u0434\u043e\/\u0444\u0430\u0439\u043b\u0430\/\u043a\u0430\u0440\u0442\u044b.txt&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t\u0422\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u043a\u0430\u0440\u0442\u0443 \u0432 <strong>RewriteRule <\/strong>\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:\n<\/p>\n<pre class=\"brush:plain;\" style=\"text-align: justify;\">\r\nRewriteRule &quot;^\/ex\/(.*)&quot; &quot;${examplemap:$1}&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t\u041d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u0440\u0442\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:\n<\/p>\n<pre class=\"brush:plain;\" style=\"text-align: justify;\">\r\nRewriteRule &quot;^\/ex\/(.*)&quot; &quot;${examplemap:$1|\/not_found.html}&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t\u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0438\u043c\u044f \u043a\u0430\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>examplemap<\/strong>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0451 \u0442\u0438\u043f (<strong>txt<\/strong>) \u0438 \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0444\u0430\u0439\u043b \u0441 \u043a\u0430\u0440\u0442\u043e\u0439 (<strong>\/\u043f\u0443\u0442\u044c\/\u0434\u043e\/\u0444\u0430\u0439\u043b\u0430\/\u043a\u0430\u0440\u0442\u044b.txt<\/strong>). \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>RewriteRule <\/strong>\u043c\u044b \u0438\u0449\u0435\u043c \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c\u0443 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044e <strong>^\/ex\/(.*)<\/strong> (\u043e\u043d\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 <strong>\/ex\/<\/strong>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e). \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043a\u0440\u0443\u0433\u043b\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438, \u0442\u043e \u0432 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 &ndash; \u043e\u043d\u0430 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0432 \u041f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043a\u0430\u043a <strong>$1<\/strong>. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 (\u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \/ex\/), \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u0433\u0434\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043c\u044f \u043a\u0430\u0440\u0442\u044b &ndash; <strong>examplemap<\/strong>. \u0422\u0430\u043a\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0438. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0432 \u043a\u0430\u0440\u0442\u0443 \u0438 \u0442\u0430\u043c \u043e\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 <strong>\u041a\u043b\u044e\u0447\u0430\u0417\u0430\u043f\u0440\u043e\u0441\u0430<\/strong>.\n<\/p>\n<h2 style=\"text-align: justify;\">\n\t<a id=\"72\" name=\"72\"><\/a>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0438 .htaccess<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\t\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteMap \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0435\u043a\u0446\u0438\u044f\u0445 <strong>&lt;Directory&gt;<\/strong> \u0438\u043b\u0438 \u0444\u0430\u0439\u043b\u0430\u0445 <strong>.htaccess<\/strong>. \u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430. \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u044b, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>RewriteRule <\/strong>\u0438 <strong>RewriteCond <\/strong>\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0438 \u0444\u0430\u0439\u043b\u0435 <strong>.htaccess<\/strong>. \u0412 \u043d\u0438\u0445 \u0432\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0443.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>\u041e\u043f\u0446\u0438\u0438\u0422\u0438\u043f\u0430\u041a\u0430\u0440\u0442\u044b <\/strong>\u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e <strong>\u0422\u0438\u043f\u0430\u041a\u0430\u0440\u0442\u044b<\/strong>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043b\u0435\u0435.\n<\/p>\n<h2 style=\"text-align: justify;\">\n\t<a id=\"73\" name=\"73\"><\/a>\u0422\u0438\u043f\u044b \u043a\u0430\u0440\u0442\u044b&nbsp;RewriteMap<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\t\u041c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 <strong>\u0422\u0438\u043f\u0430\u041a\u0430\u0440\u0442\u044b <\/strong>\u0438 <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u041a\u0430\u0440\u0442\u044b<\/strong>:\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>txt<\/strong>\n<\/p>\n<p style=\"margin-left: 40px; text-align: justify;\">\n\t\u0424\u0430\u0439\u043b \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u043c \u043f\u0430\u0440\u044b <strong>\u043a\u043b\u044e\u0447<\/strong>&#8212;<strong>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong>, \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043f\u0430\u0440\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>rnd<\/strong>\n<\/p>\n<p style=\"margin-left: 40px; text-align: justify;\">\n\t\u0421\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>dbm<\/strong>\n<\/p>\n<p style=\"margin-left: 40px; text-align: justify;\">\n\t\u0418\u0449\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 dbm, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u043c \u043f\u0430\u0440\u044b <strong>\u0438\u043c\u044f<\/strong>, <strong>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong>. \u0425\u0435\u0448 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u0438\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u044b <strong>httxt2dbm<\/strong>.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>int<\/strong>\n<\/p>\n<p style=\"margin-left: 40px; text-align: justify;\">\n\t\u041e\u0434\u043d\u0430 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 RewriteMap: <strong>toupper<\/strong>, <strong>tolower<\/strong>, <strong>escape <\/strong>\u0438\u043b\u0438 <strong>unescape<\/strong>.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>prg<\/strong>\n<\/p>\n<p style=\"margin-left: 40px; text-align: justify;\">\n\t\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>dbd \u0438\u043b\u0438 fastdbd<\/strong>\n<\/p>\n<p style=\"margin-left: 40px; text-align: justify;\">\n\tSQL SELECT \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0446\u0435\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0414\u0430\u043b\u0435\u0435 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e&nbsp;\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 <strong>\u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 RewriteMap, \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0434\u0430\u043d\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.\n<\/p>\n<h3 style=\"text-align: justify;\">\n\t<a id=\"731\" name=\"731\"><\/a>int: \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f<br \/>\n<\/h3>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0422\u0438\u043f\u041a\u0430\u0440\u0442\u044b <strong>int<\/strong>, <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b <\/strong>\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 RewriteMap. \u0410\u0432\u0442\u043e\u0440\u044b \u043c\u043e\u0434\u0443\u043b\u044f \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0432 \u0438\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e API ap_register_rewrite_mapfunc. \u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:\n<\/p>\n<ul>\n<li style=\"text-align: justify;\">\n\t\t<strong>toupper<\/strong>:\n\t<\/li>\n<\/ul>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0432\u0435\u0441\u044c \u043a\u043b\u044e\u0447 \u0432 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 (\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438).\n<\/p>\n<ul>\n<li style=\"text-align: justify;\">\n\t\t<strong>tolower<\/strong>:\n\t<\/li>\n<\/ul>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0432\u0435\u0441\u044c \u043a\u043b\u044e\u0447 \u0432 \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 (\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043c \u0431\u0443\u043a\u0432\u0430\u043c\u0438).\n<\/p>\n<ul>\n<li style=\"text-align: justify;\">\n\t\t<strong>escape<\/strong>:\n\t<\/li>\n<\/ul>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u043a\u043b\u044e\u0447\u0435 \u0432 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438.\n<\/p>\n<ul>\n<li style=\"text-align: justify;\">\n\t\t<strong>unescape<\/strong>:\n\t<\/li>\n<\/ul>\n<p style=\"text-align: justify; margin-left: 40px;\">\n\t\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438 \u0432 \u043a\u043b\u044e\u0447\u0435 \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u044d\u0442\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 RewriteMap, \u0441\u0441\u044b\u043b\u0430\u044f\u0441\u044c \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>int<\/strong>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0435\u0435 \u0432 RewriteRule:\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c URI \u043d\u0430 \u0441\u0432\u043e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438:<\/strong>\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap lc int:tolower\r\nRewriteRule &quot;(.*)&quot; &quot;${lc:$1}&quot; [R]<\/pre>\n<p style=\"text-align: justify;\">\n\t\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0435\u0439. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c URL-\u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_speling.html\" target=\"_blank\">mod_speling<\/a>.\n<\/p>\n<h3 style=\"text-align: justify;\">\n\t<a id=\"732\" name=\"732\"><\/a>txt: \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u044b<br \/>\n<\/h3>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b <strong>txt<\/strong>, <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b <\/strong>\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u043c\u0443 \u043e\u0434\u043d\u0443 \u043f\u0430\u0440\u0443 \u043a\u043b\u044e\u0447\/\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u043c, \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443. \u041e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u043e\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 &#39;<strong>#<\/strong>&#39;.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:\n<\/p>\n<pre class=\"brush:plain;\">\r\n# \u0421\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\r\nMatchingKey SubstValue\r\nMatchingKey SubstValue # \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/pre>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f RewriteMap, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0438\u0449\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438, \u0435\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u043a\u0430\u0440\u0442\u044b \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0438\u043c\u0435\u043d \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f URL-\u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u0446\u0435\u043f\u0442:\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f &laquo;\u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043a ID&raquo;<\/strong>\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap product2id &quot;txt:\/etc\/apache2\/productmap.txt&quot;\r\nRewriteRule &quot;^\/product\/(.*)&quot; &quot;\/prods.php?id=${product2id:$1|NOTFOUND}&quot; [PT]<\/pre>\n<p style=\"text-align: justify;\">\n\t\u041c\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 <strong>prods.php<\/strong> \u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <strong>id=NOTFOUND<\/strong> \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u043d\u0430 \u043a\u0430\u0440\u0442\u0435 \u043f\u043e\u0438\u0441\u043a\u0430.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0424\u0430\u0439\u043b <strong>\/etc\/apache2\/productmap.txt<\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:\n<\/p>\n<pre class=\"brush:plain;\">\r\n\u041a\u0430\u0440\u0442\u0430 &laquo;\u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043a ID&raquo;\r\n##\r\n## productmap.txt &ndash; \u0424\u0430\u0439\u043b \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043a ID\r\n##\r\n\r\ntelevision 993\r\nstereo 198\r\nfishingrod 043\r\nbasketball 418\r\ntelephone 328<\/pre>\n<p style=\"text-align: justify;\">\n\t\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f <strong>http:\/\/example.com\/product\/television<\/strong>, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f RewriteRule, \u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 <strong>\/prods.php?id=99<\/strong>3.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u043e \u0444\u0430\u0439\u043b\u0435 .htaccess<\/strong>: \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 .htaccess, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u0441\u043b\u0435\u0448 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u043d&nbsp;\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b&nbsp;\u0447\u0435\u043c\u0443-\u043b\u0438\u0431\u043e:\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteRule &quot;^product\/(.*)&quot; &quot;\/prods.php?id=${product2id:$1|NOTFOUND}&quot; [PT]<\/pre>\n<p style=\"text-align: justify;\">\n\t<strong>\u041a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b<\/strong>: \u0417\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 httpd \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f <strong>mtime <\/strong>(\u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438) \u0444\u0430\u0439\u043b\u0430 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 httpd \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0449\u0435\u043d. \u042d\u0442\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043a\u0430\u0440\u0442\u0430\u0445, \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.\n<\/p>\n<h3 style=\"text-align: justify;\">\n\t<a id=\"733\" name=\"733\"><\/a>rnd: \u0420\u0430\u043d\u0434\u043e\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<br \/>\n<\/h3>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b <strong>rnd<\/strong>, <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b <\/strong>\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u043a\u0430\u0436\u0434\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043b\u044e\u0447 \u0438 \u043e\u0434\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c <strong>|<\/strong>. \u0415\u0441\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u043b \u043a\u043b\u044e\u0447, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u043e\u0434\u043d\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u043a\u0430\u0440\u0442\u044b \u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u043c\u0438 \u0431\u044d\u043a-\u044d\u043d\u0434\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438. \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432 &#39;static&#39; \u043f\u0443\u043b\u0435, \u0430 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 &#39;dynamic&#39; \u043f\u0443\u043b\u043e\u0432.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>\u0424\u0430\u0439\u043b \u043a\u0430\u0440\u0442\u044b Rewrite<\/strong>\n<\/p>\n<pre class=\"brush:plain;\">\r\n##\r\n## map.txt &ndash; \u043a\u0430\u0440\u0442\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438\r\n##\r\n\r\nstatic www1|www2|www3|www4\r\ndynamic www5|www6<\/pre>\n<p style=\"text-align: justify;\">\n\t<strong>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b<\/strong>\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap servers &quot;rnd:\/path\/to\/file\/map.txt&quot;\r\n\r\nRewriteRule &quot;^\/(.*\\.(png|gif|jpg))&quot; &quot;http:\/\/${servers:static}\/$1&quot;&nbsp; [NC,P,L]\r\nRewriteRule &quot;^\/(.*)&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;http:\/\/${servers:dynamic}\/$1&quot; [P,L]<\/pre>\n<p style=\"text-align: justify;\">\n\t\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b, RewriteMap \u0438\u0449\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 <strong>static <\/strong>\u0432 \u0444\u0430\u0439\u043b\u0435 \u043a\u0430\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u0438\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0438\u043c\u0435\u043d \u0445\u043e\u0441\u0442\u043e\u0432 \u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u043c RewriteRule.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0441\u044f \u0447\u0430\u0449\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438, \u0447\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0435, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432), \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0438\u0441\u043b\u043e \u0440\u0430\u0437 \u0432 \u0444\u0430\u0439\u043b\u0435 \u043a\u0430\u0440\u0442\u044b.\n<\/p>\n<pre class=\"brush:plain;\">\r\nstatic www1|www1|www2|www3|www4<\/pre>\n<h3 style=\"text-align: justify;\">\n\t<a id=\"734\" name=\"734\"><\/a>dbm: \u0445\u0435\u0448 \u0444\u0430\u0439\u043b DBH<br \/>\n<\/h3>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b <strong>dbm<\/strong>, <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b <\/strong>\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a \u0444\u0430\u0439\u043b\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 DBM, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u043c\u0443 \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447\/\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438. \u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 <strong>txt<\/strong>-\u043a\u0430\u0440\u0442\u0430, \u043d\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e DBM \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b &ndash; \u043d\u0435\u0442. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0442\u0438\u043f dbm:\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap examplemap &quot;dbm=sdbm:\/etc\/apache\/mapfile.dbm&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t\u0422\u0438\u043f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <strong>sdbm<\/strong>, <strong>gdbm<\/strong>, <strong>ndbm <\/strong>\u0438\u043b\u0438 <strong>db<\/strong>. \u041e\u0434\u043d\u0430\u043a\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/programs\/httxt2dbm.html\" target=\"_blank\">httxt2dbm<\/a>, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u0443\u044e \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c Apache HTTP, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 DBM, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0442\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u044b\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0430\u043c\u043e\u0433\u043e httpd.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b <strong>dbm<\/strong>, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u0430\u0440\u0442\u044b, \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>txt<\/strong>. \u0417\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 <strong>httxt2dbm<\/strong>:\n<\/p>\n<pre class=\"brush:bash;\">\r\nhttxt2dbm -i mapfile.txt -o mapfile.map<\/pre>\n<p style=\"text-align: justify;\">\n\t\u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 RewriteMap:\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap mapname &quot;dbm:\/etc\/apache\/mapfile.map&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 dbm \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441 \u043e\u0431\u0449\u0438\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443 \u0432\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c mapfile.map.dir \u0438 mapfiile.map.pag. \u042d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u043e\u0435 \u0438\u043c\u044f mapfile.map \u0432 \u0432\u0430\u0448\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435 RewriteMap.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>\u041a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b:<\/strong> \u0417\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043a\u044d\u0448\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 httpd \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f <strong>mtime <\/strong>(\u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438) \u0444\u0430\u0439\u043b\u0430 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 httpd \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0449\u0435\u043d. \u042d\u0442\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043b\u0443\u0447\u0448\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043a\u0430\u0440\u0442\u0430\u0445, \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.\n<\/p>\n<h3 style=\"text-align: justify;\">\n\t<a id=\"735\" name=\"735\"><\/a>prg: \u0412\u043d\u0435\u0448\u043d\u044f\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438<br \/>\n<\/h3>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b <strong>prg<\/strong>, <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b <\/strong>\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043a \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Perl \u0438\u043b\u0438 Python.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u042d\u0442\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f HTTP-\u0441\u0435\u0440\u0432\u0435\u0440 Apache, \u0430 \u0437\u0430\u0442\u0435\u043c \u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 STDIN \u0438 STDOUT. \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u043a\u0430\u0440\u0442\u0435 \u043e\u043d \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0447\u0435\u0440\u0435\u0437 STDIN \u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u043e\u0442\u0432\u0435\u0442\u0430 \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c new-line \u0432 \u200b\u200bSTDOUT. \u0415\u0441\u043b\u0438 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 &laquo;NULL&raquo;, \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u044d\u0442\u043e.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d RewriteEngine.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c:\u0433\u0440\u0443\u043f\u043f\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 httpd. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 UNIX, \u043f\u0435\u0440\u0435\u0434\u0430\u0432 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 RewriteMap \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <strong>\u0438\u043c\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:\u0438\u043c\u044f_\u0433\u0440\u0443\u043f\u043f\u044b<\/strong>.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u044c\u044e\u0442\u0435\u043a\u0441\u044b \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043b\u044f \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439. \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043c\u044c\u044e\u0442\u0435\u043a\u0441\u0430 \u0438 \u0444\u0430\u0439\u043b \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/core.html#mutex\" target=\"_blank\">Mutex<\/a>.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0417\u0434\u0435\u0441\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0432\u0441\u0435 \u0434\u0435\u0444\u0438\u0441\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0432 URI \u0437\u0430\u043f\u0440\u043e\u0441\u0435.\n<\/p>\n<p style=\"text-align: justify;\">\n\t<strong>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438<\/strong>\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap d2u &quot;prg:\/www\/bin\/dash2under.pl&quot; apache:apache\r\nRewriteRule &quot;-&quot; &quot;${d2u:%{REQUEST_URI}}&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t<strong>dash2under.pl<\/strong>\n<\/p>\n<pre class=\"brush:perl;\">\r\n#!\/usr\/bin\/perl\r\n$| = 1; # Turn off I\/O buffering\r\nwhile (&lt;STDIN&gt;) {\r\n    s\/-\/_\/g; # Replace dashes with underscores\r\n    print $_;\r\n}<\/pre>\n<p style=\"text-align: justify;\">\n\t<strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/strong>\n<\/p>\n<ul>\n<li style=\"text-align: justify;\">\n\t\t\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u0432\u0438\u0441\u0430\u0435\u0442, \u044d\u0442\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442 httpd \u0436\u0434\u0430\u0442\u044c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u0441 \u043a\u0430\u0440\u0442\u044b, \u0447\u0442\u043e, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e httpd \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.\n\t<\/li>\n<li style=\"text-align: justify;\">\n\t\t\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435. \u0412 Perl \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430: <strong>$| = 1;<\/strong> \u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. \u0411\u0443\u0444\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442 httpd \u0436\u0434\u0430\u0442\u044c \u0432\u044b\u0445\u043e\u0434\u0430, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0441\u0435\u0442\u044c.\n\t<\/li>\n<li style=\"text-align: justify;\">\n\t\t\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u043a\u043e\u043f\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u044f\u043c, \u0435\u0441\u043b\u0438 \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438\u043b\u0438 \u0435\u0441\u043b\u0438 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439.\n\t<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\n\t<a id=\"736\" name=\"736\"><\/a>dbd \u0438\u043b\u0438 fastdbd: SQL Query<br \/>\n<\/h3>\n<p style=\"text-align: justify;\">\n\t\u041a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b <strong>dbd <\/strong>\u0438\u043b\u0438 <strong>fastdbd<\/strong>, <strong>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u041a\u0430\u0440\u0442\u044b <\/strong>\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e <strong>SQL SELECT<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_dbd.html\" target=\"_blank\">mod_dbd<\/a> \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043d\u0443\u0436\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0435 \u0444\u043e\u0440\u043c\u044b \u044d\u0442\u043e\u0433\u043e <strong>\u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b<\/strong>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0422\u0438\u043f\u044b\u041a\u0430\u0440\u0442\u044b <strong>dbd <\/strong>\u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u043a\u0430\u0440\u0442\u044b, \u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435&nbsp;<strong>fastdbd <\/strong>\u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b&nbsp;\u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0445\u043e\u0442\u044f <strong>fastdbd <\/strong>\u0431\u043e\u043b\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0442\u044c \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0438\u0437 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041f\u0440\u0438\u043c\u0435\u0440\n<\/p>\n<pre class=\"brush:plain;\">\r\nRewriteMap myquery &quot;fastdbd:SELECT destination FROM rewrite WHERE source = %s&quot;<\/pre>\n<p style=\"text-align: justify;\">\n\t<strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0418\u043c\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0443 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e SQL \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0443), \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\n<\/p>\n<h2 style=\"text-align: justify;\">\n\t<a id=\"74\" name=\"74\"><\/a>\u0420\u0435\u0437\u044e\u043c\u0435<br \/>\n<\/h2>\n<p style=\"text-align: justify;\">\n\t\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteMap \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043e\u0434\u043d\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 RewriteMap \u0434\u043b\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0435\u0451 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043a\u0430\u0440\u0442\u044b.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u0425\u043e\u0442\u044f \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 (\u0444\u0430\u0439\u043b\u044b <strong>.htaccess<\/strong> \u0438\u043b\u0438 \u0431\u043b\u043e\u043a\u0438 <strong>&lt;Directory&gt;<\/strong>), \u044d\u0442\u0443 \u043a\u0430\u0440\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439.\n<\/p>\n<p style=\"text-align: justify;\">\n\t\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435: &laquo;\u041f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e mod_rewrite (\u0447\u0430\u0441\u0442\u044c 8): \u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteOptions, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043a\u043e\u0433\u0434\u0430 \u041d\u0415 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c mod_rewrite&raquo;.<\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u041e\u0433\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u0435. \u041f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e mod_rewrite 1. \u041a\u0430\u043a \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438 \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442&nbsp;mod_rewrite 2. \u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f&nbsp;mod_rewrite 3.&nbsp;\u0424\u043b\u0430\u0433\u0438 RewriteRule 4.&nbsp;\u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteCond 5. \u0427\u0430\u0441\u0442\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f mod_rewrite 6.&nbsp;\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0438 7. \u0414\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 RewriteMap 7.1 \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RewriteMap, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c RewriteMap 7.2&nbsp;\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0438 .htaccess 7.3&nbsp;\u0422\u0438\u043f\u044b \u043a\u0430\u0440\u0442\u044b&nbsp;RewriteMap 7.3.1&nbsp;int: \u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f 7.3.2&nbsp;txt: \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u044b<a href=\"https:\/\/hackware.ru\/?p=5869\" class=\"read-more\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[10,230,54,8],"class_list":["post-5869","post","type-post","status-publish","format-standard","hentry","category-2","tag-apache","tag-mod_rewrite","tag-54","tag-8"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/hackware.ru\/index.php?rest_route=\/wp\/v2\/posts\/5869"}],"collection":[{"href":"https:\/\/hackware.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hackware.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hackware.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hackware.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5869"}],"version-history":[{"count":9,"href":"https:\/\/hackware.ru\/index.php?rest_route=\/wp\/v2\/posts\/5869\/revisions"}],"predecessor-version":[{"id":5923,"href":"https:\/\/hackware.ru\/index.php?rest_route=\/wp\/v2\/posts\/5869\/revisions\/5923"}],"wp:attachment":[{"href":"https:\/\/hackware.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hackware.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hackware.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}