![]() |
Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community |
![]() |
#1 |
Senior Member
Регистрация: 21.04.2006
Сообщений: 245
|
![]()
Без fl_staticfilecache сайт выводится нормально, кодировка utf-8.
Такая строка есть в html страницы: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> При использовании fl_staticfilecache результирующий файл такой же, но браузер самостоятельно определяет кодировку windows-1251 и переключает на нее. В результате - страница кракозябрами. В чем может быть дело? |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
![]()
в Апаче кодировка не стоит?
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Регистрация: 21.04.2006
Сообщений: 245
|
![]()
Это все крутится на виртуальном сервере у хостера. Что там в апаче - неизвестно.
Если ставить CharsetDisable в htaccess, то сайт валится. Похоже, такой инструкции в htaccess не предусмотрено. Ну а в httpd.conf у меня доступа нет. Что еще посоветуете? |
![]() |
![]() |
![]() |
#5 | |
Senior Member
|
![]()
http://www.w3.org/International/ques...access-charset
AddCharset UTF-8 .html А если стоит неотмершая по ошибке экзотика типа русского Апача, то Цитата:
|
|
![]() |
![]() |
![]() |
#6 |
Senior Member
Регистрация: 21.04.2006
Сообщений: 245
|
![]() |
![]() |
![]() |
![]() |
#7 |
Administrator
|
![]()
а почему fl_staticfilecache?
он же вроде хуже чем nc_staticfilecache ? |
![]() |
![]() |
![]() |
#8 |
Senior Member
Регистрация: 21.04.2006
Сообщений: 245
|
![]()
А я и не знал про nc_staticfilecache
![]() Поставлю, посмотрю. Спасибо за подсказку |
![]() |
![]() |
![]() |
#9 |
Senior Member
Регистрация: 21.04.2006
Сообщений: 245
|
![]()
не могу настроить nc_staticfilecache
файлы в кэше создаются но потом не выводятся вместо php полагаю, дело в .htaccess можете привести пример работающего .htaccess? |
![]() |
![]() |
![]() |
#10 |
Senior Member
|
![]() Код:
RewriteEngine On RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L] RewriteRule ^typo3$ typo3/index_re.php [L] #------------------------------------------------------------------------------ # beginning of static file cache ruleset # Check for Ctrl Shift reload RewriteCond %{HTTP:Pragma} !no-cache RewriteCond %{HTTP:Cache-Control} !no-cache # Don't cache HTTPS traffic by default. You may choose to comment out this # option if your site runs fully on https. If your site runs mixed, you will # not want https traffic to be cached in the same typo3temp folder where it can # be requested over http. # Enable this if you use a mixed setup. #RewriteCond %{HTTPS} off # NO backend user is logged in. Please note that the be_typo_user expires at the # end of the browser session. So, although you have already logged out of the # backend, you will still have to either restart your browser or remove the # cookie manually for this rule to work. RewriteCond %{HTTP_COOKIE} !be_typo_user [NC] # NO frontend user is logged in. Logged in frontend users may see different # information than anonymous users. But the anonymous version is cached. So # don't show the anonymous version to logged in frontend users. RewriteCond %{HTTP_COOKIE} !nc_staticfilecache [NC] # We only redirect GET requests RewriteCond %{REQUEST_METHOD} GET # We only redirect URI's without query strings RewriteCond %{QUERY_STRING} ^$ # We only redirect if a cache file actually exists # Uncomment the following two lines if you use realurl: RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%EQUEST_URI}index.html -f RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI} [L] # Uncomment the following two lines if you use simulateStaticDocuments: #RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%REQUEST_URI}/index.html -f #RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html [L] # end of static file cache ruleset #------------------------------------------------------------------------------ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* index.php [L] |
![]() |
![]() |
![]() |
|
|
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
utf8 - при сохранении урезает строку | extreme | Установка | 5 | 27.08.2007 22:02 |
Проблемы при использовании AJAX | Prost | Общие вопросы | 8 | 05.02.2007 14:37 |
при сохранении настроек template setup русские буквы теряются | Ice | Локализация проекта | 9 | 12.01.2007 15:46 |
tx_srfeuserregister+kb_md5pw+newloginbox - проблема при смене страны при регистрации | Drizzt Do'Urden | Общие вопросы | 0 | 12.12.2006 19:19 |
вид урла в меню при использовании RealUrl | demav | Общие вопросы | 2 | 16.08.2006 13:20 |