TYPO3 realURL自动配置为手动配置 [英] TYPO3 realURL Autoconf to manual conf
问题描述
我有一个TYPO3网站,使用realURLs autoconf运行了多年.
I have a TYPO3 site that's been running with realURLs autoconf for years.
模式非常简单:域/语言/pid 例如example.com/d/6
The pattern is very simple: Domain/language/pid e.g. example.com/d/6
现在我必须对realURL配置进行补充,但是我不确定如何通过autoconf在手动配置文件中重现设置(我们不想更改URL)
Now I have to make an addition to the realURL config, but I'm not sure on how to reproduce the setup by autoconf in a manual configuration file (we don't want to change the URLs)
那是怎么做的?我试过通过var_export()输出序列化的autoconf值,但是没有用.
How's that done? I've tried outputting the serialized autoconf values via var_export(), but no work.
或者:如何在realurl_conf中创建上面的URL模式?
Or: how can I create the URL pattern above in realurl_conf?
谢谢! Urs
推荐答案
这很容易:
- 在
Extension Manager
(EM
)中找到RealURL并将选项Automatic configuration file format
设置为PHP source (slow!)
(仍自动启用 !) - 删除文件
typo3conf/realurl_autoconf.php
(据我所记得),清除所有缓存并刷新主页,autoconf文件将以未序列化的版本重新创建. - 将文件重命名为
typo3conf/realurl_conf.php
,再次转到EM,然后取消选中automatic configuration
选项.
- In
Extension Manager
(EM
) find the RealURL and set optionAutomatic configuration file format
toPHP source (slow!)
(with automatic conf still enabled!) - Remove the file
typo3conf/realurl_autoconf.php
(as far as I remember), clear all caches and refresh the main page, the autoconf file will be recreated in unserialized version. - Rename the file to
typo3conf/realurl_conf.php
, go to EM again and uncheck theautomatic configuration
option.
清除缓存后,您将切换到由自动缓存构建的手动配置.
After clearing the caches and you'll be switched to manual config built from the automatic one.
这篇关于TYPO3 realURL自动配置为手动配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!