estic

Рейтинг
126
Регистрация
01.10.2017
Sitealert:
Fuck you gave me to bite you.

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:

foxi:
My option is better because it does not require revrayty for him. revrayty is a throwback to the places where they are not required.
"Rewrite", about which you write - it really is an atavism. ... CNC support is implemented in the kernel ...
... When I use addresses like / first or / pages / first, for me it is a primary identifier first.

And here you are interfering with the whole proletarian bluntness:

Sitealert:
Tell me how to do it without rewriting.

I try to hint to you that to your intervention it was not about the title:

I had originally written "" rewrite ", about which you write"

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:

In addition, you will agree, "fastcgi_param SCRIPT_FILENAME /var/www/project/index.php;" inside "a named location-and" it is difficult to call the "rewriting".

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.

Sitealert:
I was just trying to convey to you that you got it into his head off some own ideas ( "other realities", as you say), and you can not understand basic things: that the server opens the file is not at the request, and on the other address is rewriting.

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 ----------

burunduk:
-There site.com/page1 page site.com/page5 - a non-existent page as a side klientta distinguish between them without recourse to the server?
I did not understand the question.

Тарасов Роман, уточню: но в общем-то нормально то, что вы сделали, когда "разработчики" такие, как вы это описали. Не нормально, когда специалисты по WP переносят сайты на WP с нормальных платформ только из-за того, что ничего кроме WP не знают (вместо "WP" здесь можно было указать и много других CMS). Но в общем-то даже это вполне допустимо. Многие в какой-то момент начинают закупаться на вещевых рынках и ничего :)

Тарасов Роман:
По логике estic, клиенту нужно было оставить на главной баннер с газелями, хотя они полностью перешли на большегрузы. А че, пусть люди звонят, спрашивают и уходят. Зато движок сайта красивый, не ВП.

По моей логике клиенту, занимающемуся автоперевозками, не нужно знать, на чем работает его сайт, если, конечно, он не ген. директор, водитель и контент-менеджер своего сайта в одном лице.

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 :)

Roman Tarasov:
According to the logic estic, the client had to leave on the main banner with gazelles, although they have completely switched to heavy-. A Th, let people call, ask and go. But the engine is a beautiful site, not VP.

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, так он практически то же самое написал. Вам не понравилось отсутствие "почти всегда" и присутствие "порой"?

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"?

burunduk:
but the type of page it makes sense to specify almost always - it is very much easier life

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:

And what a rewrite?

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.

livetv:
О какой нагрузке речь?

Подозреваю, что он писал о последовательном переборе адресных шаблонов в процессе маршрутизации. Возможно, и о неправильно проиндексированных слагах.

Сильно мнительные :) могут использовать смешанный вариант, например:

/pages/12345

---------- Добавлено 13.06.2020 в 14:04 ----------

...ограничившись малым количеством маршрутов, если не знают других подходов к маршрутизации.

Всего: 1158