{"id":488,"date":"2013-03-20T09:20:30","date_gmt":"2013-03-20T07:20:30","guid":{"rendered":"http:\/\/www.orlio.eu\/?p=488"},"modified":"2013-03-20T09:21:27","modified_gmt":"2013-03-20T07:21:27","slug":"lighttpd-%d0%b8-rewrite-rules-%d0%bf%d1%80%d0%b8-%d0%bf%d1%83%d1%81%d0%bd%d0%b0%d1%82%d0%b8-permalinks-%d0%b2-wordpress","status":"publish","type":"post","link":"https:\/\/www.orlio.eu\/?p=488","title":{"rendered":"lighttpd \u0438 rewrite rules \u043f\u0440\u0438 \u043f\u0443\u0441\u043d\u0430\u0442\u0438 permalinks \u0432 wordpress"},"content":{"rendered":"<p>\u0410\u043a\u043e \u0441\u0430 \u043f\u0443\u0441\u043d\u0430\u0442\u0438 permalinks \u0432 wordpress, \u0442\u043e \u043d\u0430\u0439-\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0438\u043c\u0430\u043c\u0435 .htaccess \u0441\u044a\u0441 \u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435:<br \/>\n<code><br \/>\n<IfModule mod_rewrite.c><br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteRule ^index\\.php$ - [L]<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/index.php [L]<br \/>\n<\/IfModule><br \/>\n<\/code><\/p>\n<p>\u0417\u0430 \u0434\u0430 \u0441\u0440\u0430\u0431\u043e\u0442\u044f\u0442 \u043f\u043e\u0434 lighttpd \u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0430\u043c\u0435 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p>\/etc\/lighttpd\/modules.conf<\/p>\n<p>\u043a\u0430\u0442\u043e \u043f\u044a\u0440\u0432\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u043c\u043e\u0434\u0443\u043ba:<br \/>\n<code><br \/>\nmod_rewrite<br \/>\n<\/code><br \/>\n\u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438\u0442\u0435 \u0441\u0435 \u043f\u0440\u0430\u0432\u0438 \u043a\u0430\u0442\u043e \u0441\u0435 \u0440\u0430\u0437\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u0430\u0442 \u0440\u0435\u0434\u043e\u0432\u0435\u0442\u0435 \u0438 \u0441\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0441\u0435 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430 lighttpd<br \/>\n\u0441\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u0432 \u043a\u043e\u043d\u0444\u0443\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0442\u0430 \u043d\u0430 vhost-a:<br \/>\n\u0433\u043e\u0440\u043d\u0438\u0442\u0435 rewrite rules \u0449\u0435 \u0438\u0437\u0433\u043b\u0435\u0436\u0434\u0430\u0442 \u043f\u043e \u0442\u043e\u0437\u0438 \u043d\u0430\u0447\u0438:<\/p>\n<p><code><br \/>\n$HTTP[\"host\"] =~ \"(^|\\.)domain\\.com$\" {<br \/>\n        url.rewrite = (<br \/>\n                \"^\/(.*)\\.(.+)$\" => \"$0\",<br \/>\n                \"^\/(.+)\/?$\" => \"\/index.php\/$1\"<br \/>\n        )<br \/>\n}<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0410\u043a\u043e \u0441\u0430 \u043f\u0443\u0441\u043d\u0430\u0442\u0438 permalinks \u0432 wordpress, \u0442\u043e \u043d\u0430\u0439-\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0438\u043c\u0430\u043c\u0435 .htaccess \u0441\u044a\u0441 \u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435: RewriteEngine On RewriteBase \/ RewriteRule ^index\\.php$ &#8211; &hellip; <a href=\"https:\/\/www.orlio.eu\/?p=488\" class=\"more-link\">More <span class=\"screen-reader-text\">lighttpd \u0438 rewrite rules \u043f\u0440\u0438 \u043f\u0443\u0441\u043d\u0430\u0442\u0438 permalinks \u0432 wordpress<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19,35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.orlio.eu\/index.php?rest_route=\/wp\/v2\/posts\/488"}],"collection":[{"href":"https:\/\/www.orlio.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orlio.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orlio.eu\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orlio.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":2,"href":"https:\/\/www.orlio.eu\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/www.orlio.eu\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions\/490"}],"wp:attachment":[{"href":"https:\/\/www.orlio.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orlio.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orlio.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}