我有一个使用 realURLs autoconf 运行多年的 TYPO3 站点。
模式很简单:域/语言/pid 例如example.com/d/6
现在我必须对 realURL 配置进行添加,但我不确定如何在手动配置文件中通过 autoconf 重现设置(我们不想更改 URL)
那是怎么做的?我尝试通过 var_export() 输出序列化的 autoconf 值,但没有成功。
或者:如何在 realurl_conf 中创建上面的 URL 模式?
谢谢!乌尔斯
It's quite easy:
Extension Manager
(EM
) find the RealURL and set option Automatic configuration file format
to PHP source (slow!)
(with automatic conf still enabled!)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.typo3conf/realurl_conf.php
, go to EM again and uncheck the automatic configuration
option.After clearing the caches and you'll be switched to manual config built from the automatic one.