CDRO
CDRO

Reputation: 139

Typolink across domain using SSL behind proxy

There are two page trees in my TYPO3 and I link between them. Both websites use an SSL/TLS encryption for the frontend delivery and thus should only generate relative links (if on the same domain) or link to my second domain (which it does, but only using http and not https).

Now the reason for this seems clear: I've never told TYPO3 to only generate https links. The question is: how would I do that in the first place?

I've come accross the possibility to work with config.absRelPrefix but this doesn't work when linking across domains.

Upvotes: 0

Views: 227

Answers (2)

CDRO
CDRO

Reputation: 139

Apparently, config.typolinkCheckRootline = 1 as well as any combination of config.absRelPrefix and config.baseUrl won't help it, if TYPO3 get's the wrong HTTP host and only get's the host via HTTP_X_FORWARDED_HOST env var.

Upvotes: 0

Wolffc
Wolffc

Reputation: 1260

use

config.typolinkCheckRootline = 1

this way typolinks check if the target page belongs to the current domain.

https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#typolinkcheckrootline

Upvotes: 0

Related Questions