[英]TYPO3 - HTTPS Migration
I'm running a website under TYPO3 6.2 and follow this tutorial in order to migrate my website on HTTPS. 我正在TYPO3 6.2下运行一个网站,并按照本教程进行操作 ,以便在HTTPS上迁移我的网站。 For now I got success with :
现在,我成功地实现了:
config.absRefPrefix = auto config.baseURL >
TCAdefaults.pages.url_scheme = 2
.. and everything seem to work fine. ..一切似乎都正常。 But if I edit this parameter :
但是,如果我编辑此参数:
... website shuts down with infinite redirection loop (301 Moved Permanently). ...网站以无限重定向循环关闭(301已永久移动)。 Why ?
为什么呢 The result is the same (infinite loop) if I execute this query :
如果执行此查询,结果是相同的(无限循环):
UPDATE pages SET url_scheme = 2
...and same for BE if I make this change : ...如果我进行此更改,对BE也是一样:
$GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSL'] = ‘2’;
You should not use the url_scheme
field exactly because of issues like these. 由于此类问题,您不应该完全使用
url_scheme
字段。 In fact this field was dropped with TYPO3v8 . 实际上,该字段已被TYPO3v8删除 。 Any Page TSConfig related to
url_scheme
should be removed and you should run an SQL query to fix all existing pages. 应该删除与
url_scheme
相关的所有页面TSConfig,并且应该运行SQL查询来修复所有现有页面。
Instead you should enforce HTTPS using a redirect in your .htaccess
. 相反,您应该使用
.htaccess
的重定向来强制实施HTTPS 。
Infinite loops like these are usually caused by redirects performed both by TYPO3 and your webserver: 像这样的无限循环通常是由TYPO3和您的Web服务器执行的重定向引起的:
For this reason you should also check your existing redirects, eg for enforcing www.
因此,您还应该检查现有的重定向,例如,执行
www.
in your domain. 在您的域中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.