Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   Общие вопросы (http://forum.typo3.ru/forumdisplay.php?f=12)
-   -   RealURL (http://forum.typo3.ru/showthread.php?t=8676)

wildman 23.06.2010 16:57

RealURL
 
Подскажите пожалуйста, как заставить работать RealURL?
Мануалы читал, но честно говоря не совсем понял что делать.
Во всяком случае я делал так:

1. Установил модуль RealURL

2. Добавил в /etc/apache2/httpd.conf следующие строки:
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

3. Добавил в TypoScript Setup следующие строки:
config.simulateStaticDocuments = 0
config.baseURL = 1
config.tx_realurl_enable = 1

При запуске просмотра теперь следующая ошибка:

Error!

Unsupported TypoScript property was found in this template: "config.baseURL="1"

This setting has been deprecated in TYPO 3.8.1 due to security concerns.
You need to change this value to the URL of your website root, otherwise TYPO3 will not work!

See wiki.typo3.org/index.php/TYPO3_3.8.1 for more information.


Подскажите пожалуйста, как правильно настроить эту функцию.

Dutchak Vitaly 23.06.2010 17:21

config.baseURL = url вашего сайта

wildman 23.06.2010 18:28

Поправил:
config.baseURL = http://192.168.101.145/cms/typo3/NewSite_1

Ошибка стала такой:

t3lib_error_Exception

PHP : Function ereg_replace() is deprecated in /var/www/cms/typo3conf/ext/realurl/class.tx_realurl.php line 253

Что-то где-то неправильно :(

wildman 23.06.2010 18:30

Может быть это из-за этого?
Нет включений кода XCLASS в файле "class.tx_realurl_userfunctest.php"

void 23.06.2010 19:23

Обновите realurl до последней версии.

wildman 24.06.2010 09:49

А где можно найти более свежую версию? Репозитарий мне предлагает только 1.1.0
Список зеркал - http://repositories.typo3.org/mirrors.xml.gz

wildman 24.06.2010 10:05

Нашел. Но при установке новой версии выдает ошибку:
ERROR: Query could not be parsed: "SQL engine parse ERROR: No action CHANGE, DROP or ADD found!: near "ENGINE=InnoDB "". Query: "ALTER TABLE tx_realurl_pathcache ENGINE=InnoDB;"

wildman 25.06.2010 11:45

RealURL заработал, но как-то странно.
Если запускать из админки ( http://192.168.101.145/cms1/index.php?id=1 ), главная страница открывается, пути в левом меню преобразованны в нормальные, типа:
http://192.168.101.145/cms1/products/
http://192.168.101.145/cms1/cetest-firstpage/
http://192.168.101.145/cms1/contact/

Но при нажатии на ссылки - болт :(
Not Found
The requested URL /cms1/contact/ was not found on this server.

Из адресной строки браузера можно вызвать сайт следующей строкой:
http://192.168.101.145/cms1/
открывается главная страница, пути тоже нормальные, но не работают :(

Что делать дальше?

Костик 23.11.2010 13:49

В конфигурационном файле Apache Найдите данный блок:

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

И замените его на следующий:

<Directory />
Options Includes Indexes FollowSymLinks
AllowOverride All
Allow from all
</Directory>

semender 26.11.2010 10:08

У меня выдаёт
Цитата:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
без realurl всё шикарно, в чём может быть проблема???


Часовой пояс GMT +4, время: 15:26.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot