简体   繁体   English

TYPO3,更改域后realurl不起作用

[英]TYPO3, realurl not working after change the domain

We have an old TYPO3 site (v4.7) and we moved the site to another domain.我们有一个旧的 TYPO3 站点 (v4.7),我们将该站点移至另一个域。 now all the pages give the error: 404 Not Found现在所有页面都给出错误:404 Not Found

when I tried to get the page using URLs containing page id like /index.php?id=2 , it works当我尝试使用包含页面 ID(如/index.php?id=2 URL 获取页面时,它可以工作

how can I fix the site to works using real spoken URL /page-name如何使用真实的口语 URL /page-name修复站点以使其正常工作

thanks谢谢

First of all you should change the domain record (in the backend, at the root of the domain in "List" view).首先,您应该更改域记录(在后端,位于“列表”视图中域的根目录)。

Maybe the domain is hard-coded in your realurl-config which is usually at /typo3conf/realurl* (realurl-extension configuration in the extension manager).也许域是硬编码在您的 realurl-config 中,它通常位于 /typo3conf/realurl* (扩展管理器中的 realurl-extension 配置)。 If you selected "auto-configuration" in realurl's extension configuration and nobody made the mistake to make changes to the file directly, you can delete it and let it regenerate.如果您在realurl的扩展配置中选择了“自动配置”,并且没有人错误地直接对文件进行更改,您可以将其删除并让其重新生成。

Maybe TypoScript settings like config.baseURL or config.absRefPrefix have a say here, too.也许像 config.baseURL 或 config.absRefPrefix 这样的 TypoScript 设置在这里也有发言权。 I suggest to check in the template analyzer (backend: "Template" -> select your domain's root -> template analyzer -> view complete listing) if there is something with the old domain.我建议检查模板分析器(后端:“模板”-> 选择域的根目录-> 模板分析器-> 查看完整列表)是否有旧域的内容。

Of course, realurl needs to be activated (TypoScript config.tx_realurl_enable = 1) but if you did not change it, that should not have changed.当然,realurl 需要被激活(TypoScript config.tx_realurl_enable = 1)但如果你没有改变它,那应该不会改变。

Then of course clear all caches (preferably via the function in the Install Tool).然后当然清除所有缓存(最好通过安装工具中的功能)。

If you still have problems, deleting /typo3temp (and recreating it via the InstallTool) might help.如果仍有问题,删除 /typo3temp(并通过 InstallTool 重新创建)可能会有所帮助。 And check if there's something useful in the logs, of course (where, depends on ['SYS']['systemLog'] and ['SYS']['systemLogLevel'], probably typo3temp/*.log or your PHP error log).并检查日志中是否有一些有用的东西,当然(其中,取决于 ['SYS']['systemLog'] 和 ['SYS']['systemLogLevel'],可能是 Typ3temp/*.log 或您的 PHP 错误日志)。

Good luck with that ole' T3 ;)祝那个 ole' T3 好运 ;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM