问题
I have a TYPO3 site that's been running with realURLs autoconf for years.
The pattern is very simple: Domain/language/pid e.g. example.com/d/6
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)
How's that done? I've tried outputting the serialized autoconf values via var_export(), but no work.
Or: how can I create the URL pattern above in realurl_conf?
Thanks! Urs
回答1:
It's quite easy:
- 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.
来源:https://stackoverflow.com/questions/16730218/typo3-realurl-autoconf-to-manual-conf