Sitealert, I wrote it just in case, as a response to one of the possible causes of your "blindness". Apparently, the reason is more obvious :)
Well, recall the background:
And here you are interfering with the whole proletarian bluntness:
I try to hint to you that to your intervention it was not about the title:
And only in addition, to answer your direct question, write that, in general, and "rewrite" in the usual sense of the word can not be used:
Further already referred to that shown called "rewrite", though it is difficult, but possible. And I explain why I find it difficult, and guess why this alternative name you do not need.
I understand it very well. And you know what /var/www/project/index.php in my example - does not address, and that you can run the index.php without assessing the request address? ---------- Posted 15.06.2020 at 13:23 ----------
Тарасов Роман, уточню: но в общем-то нормально то, что вы сделали, когда "разработчики" такие, как вы это описали. Не нормально, когда специалисты по WP переносят сайты на WP с нормальных платформ только из-за того, что ничего кроме WP не знают (вместо "WP" здесь можно было указать и много других CMS). Но в общем-то даже это вполне допустимо. Многие в какой-то момент начинают закупаться на вещевых рынках и ничего :)
По моей логике клиенту, занимающемуся автоперевозками, не нужно знать, на чем работает его сайт, если, конечно, он не ген. директор, водитель и контент-менеджер своего сайта в одном лице.
Roman Tarasov, clarify: but in general, it is normal that you did when "developers" such as you have described it. Not normal, when specialists WP sites carry on with normal WP platform only from the fact that nothing except WP do not know (instead of "WP" here you can specify many other CMS). But in general, it is even quite possible. Many people at some point begin to be purchased at flea markets and anything :)
According to my logic, clients engaged in road transport, it is not necessary to know on what works his site, unless, of course, it is not the gene. Director of the driver and the content of its site manager all rolled into one.
Sitealert, я различаю прямой запуск фронт-контроллера и "рерайт" в обычном понимании этого слова. Подозреваю, что вы никогда не пользовались первым способом, поэтому для вас альтернативы нет.
В общем я ответил на заданный вами первоначально вопрос. Если вы его задали только для того, чтобы потом продекларировать "ЧПУ без рерайта не бывает", не обращая внимание на мой ответ или не понимая его, это ваше дело. В чем-либо убеждать вас я не собираюсь. Не в школе.
Я пишу на форуме не с целью отнять у вас хлеб. Работой обеспечен. Так что не тратьте напрасно силы, чтобы меня "укусить".---------- Добавлено 15.06.2020 в 08:15 ----------burunduk, так он практически то же самое написал. Вам не понравилось отсутствие "почти всегда" и присутствие "порой"?
Не забывайте про неявное указание. Один из типов может быть указан путем отсутствия явного указания :)
/page - тип 1
/type-2/page - тип 2, при этом страница /type-2 может быть первого типа или отсутствовать, если опираться только на структуру пути
Sitealert, I distinguish direct dispatch the front controller, and "rewrite" in the usual sense of the word. I suspect that you've never used the first method, so there is no alternative for you.
In general, I responded to the question you have the original question. If you asked only to then declare "the CNC does not happen without rewriting", not paying attention to my answer or did not understand it, that's your business. What else to convince you I'm not going to. Not in school.
I write in the forum is not the purpose of take away your bread. The operation is assured. So do not waste power to me, "bite." ---------- Posted 15.06.2020 at 08:15 ---------- burunduk, so it is virtually the same wrote. You do not like the lack of "almost always" and the presence of "sometimes"?
Do not forget the implicit indication. One type may be indicated by the lack of an explicit :)
/ Page - type 1
/ Type-2 / page - type 2, the page / type-2 can be the first type or absent if only rely on the path structure
Sitealert, странно, что вы до сих пор не прочитали написанное мной. Это какой-то снобизм?
В общем, да, в вашей системе координат без "рерайта" никуда. Я нахожусь немного в других реалиях.
Sitealert, it is strange that you still have not read written by me. This is some kind of snobbery?
Well, yes, in your frame of reference without the "rewriting" nowhere. I'm a little bit in other realities.
Sitealert, тогда ответьте на заданный вам выше вопрос:
Вполне возможно, мы говорим о разных вещах. Я вам пытался объяснить, что дело не столько в сервере, сколько в способе запуска фронт-контроллера, но вы, похоже, не поняли. Чтобы запустить фронт-контроллер, не нужно проверять адреса на попадание под какие-то адресные шаблоны, не нужно преобразовывать адреса в какой-то внутренний формат. Достаточно иметь директиву (или какой-то другой механизм), в котором бы было прямо написано, что вот он фронт-контроллер, и запускать его без дополнительных проверок. Быть может, кроме try_files.
Sitealert, then answer the above question to ask you:
Quite possibly, we are talking about different things. I tried to explain to you that it is not so much in the server, but in how to run a front controller, but you do not seem to understand. To start, the front controller, no need to check the address on a hit by some kind of targeted templates, no need to convert addresses to some internal format. Enough to have a directive (or some other mechanism), which would be directly written that he's the front controller, and run it without any additional checks. Perhaps, except try_files.
Подозреваю, что он писал о последовательном переборе адресных шаблонов в процессе маршрутизации. Возможно, и о неправильно проиндексированных слагах.
Сильно мнительные :) могут использовать смешанный вариант, например:
/pages/12345---------- Добавлено 13.06.2020 в 14:04 ----------...ограничившись малым количеством маршрутов, если не знают других подходов к маршрутизации.