[英]TYPO3 9.5 redirect
Until 9.5 i used sys_domain for redirecting Domains.直到 9.5 我使用 sys_domain 重定向域。
For example: I had a Domain example.com
and set a redirect to example.info
.例如:我有一个域example.com
并将重定向设置为example.info
。
When a user called example.com/contact
it redirected to example.info/contact
.当用户调用example.com/contact
它会重定向到example.info/contact
。
Now, with TYPO3 9.5, it won't work anymore.现在,使用 TYPO3 9.5,它将不再起作用。 When setting up a redirect for this domain (sourcepath: /
, Respect get: no, REGEX: no) and calls example.com/contact
it throws an error.当为此域设置重定向(源路径: /
,Respect get:no,REGEX:no)并调用example.com/contact
它会引发错误。 When change the setting to regex: yes & source path (.*?)
, it just redircts to example.info
- contact is forgotten.当将设置更改为 regex: yes & source path (.*?)
,它只是重定向到example.info
- 忘记了联系人。
Is there a way to get the 'old' functionality back?有没有办法恢复“旧”功能?
It is not possible to automatically prepend the source path to the destination with the redirects module.无法使用重定向模块自动将源路径添加到目的地。 Just redirect such domains via .htaccess:只需通过 .htaccess 重定向此类域:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [or]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^(.*) https://example.info/$1 [L,R=301]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.