TYPO3 realURL自动配置为手动配置 [英] TYPO3 realURL Autoconf to manual conf

查看:106
本文介绍了TYPO3 realURL自动配置为手动配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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

推荐答案

这很容易:

  1. Extension Manager(EM)中找到RealURL并将选项Automatic configuration file format设置为PHP source (slow!)(仍自动启用 !)
  2. 删除文件typo3conf/realurl_autoconf.php(据我所记得),清除所有缓存并刷新主页,autoconf文件将以未序列化的版本重新创建.
  3. 将文件重命名为typo3conf/realurl_conf.php,再次转到EM,然后取消选中automatic configuration选项.
  1. In Extension Manager (EM) find the RealURL and set option Automatic configuration file format to PHP source (slow!) (with automatic conf still enabled!)
  2. 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.
  3. Rename the file to 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.

这篇关于TYPO3 realURL自动配置为手动配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆