【发布时间】:2020-08-07 09:14:50
【问题描述】:
由于页面结构中的一些更改,我们的许多页面都更改了 pid。在 SEO 术语中并不重要,因为会说话 url,但是有一堆第三方链接带有错误的 pid,例如。 g.:
https://www.myDomain.de/index.php?id=46&no_cache=1&sword_list[0]=someWord
uid 为 46 的页面存在,但不是预期的页面,它现在位于不同的域下。所以结果如下异常:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1518472189:
ID was outside the domain | TYPO3\CMS\Core\Error\Http\PageNotFoundException
thrown in file typo3/sysext/frontend/Classes/Controller/ErrorController.php
in line 80. Requested URL:
https://www.myDomain.de/index.php?id=46&no_cache=1&sword_list[0]=someWord
我的问题:
我可以告诉 TYPO3 不要抛出异常,而是将所有外部域事件简单地视为 404 并重定向到错误页面吗?
谢谢!
【问题讨论】: