Хостинг > Платный хостинг

как делаются читабельные URLы? [mod_rewrite?]

<< < (2/2)

Xander:
Угу, спасибо, прояснили ситуацию. Видимо, ответом будет mod_rewrite.

YA:
Xander
А уверен, что дадут? Где хостишся?

Xander:
Да, по поводу производительности:
цитатка из /htdocs/manual/mod/mod_rewrite.html:

 
--- Цитировать ---
Unbelievably mod_rewrite provides URL manipulations in per-directory context, i.e., within .htaccess files, although these are reached a very long time after the URLs have been translated to filenames. It has to be this way because .htaccess files live in the filesystem, so processing has already reached this stage. In other words: According to the API phases at this time it is too late for any URL manipulations. To overcome this chicken and egg problem mod_rewrite uses a trick: When you manipulate a URL/filename in per-directory context mod_rewrite first rewrites the filename back to its corresponding URL (which is usually impossible, but see the RewriteBase directive below for the trick to achieve this) and then initiates a new internal sub-request with the new URL. This restarts processing of the API phases.
 
--- Конец цитаты ---


Я это так понимаю, что когда ты не единоличный хозяин своего Апача, то можешь указывать соотв. директивы mod_rewrite\'у только в .htaccess, и они при этом будут выполняться гораздо медленне, чем будучи прописанными непосредственно в httpd.conf. Так?

Навигация

[0] Главная страница сообщений

[*] Предыдущая страница

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 
Перейти к полной версии