[TYPO3] realurl and HTTPS/SSL
Marco Bresch
oscar.x at web.de
Mon Jan 2 14:49:35 CET 2006
Hi Pieter!
I don't know what happens in your trick but what is about this solution:
[globalVar = TSFE:page|tx_httpsenforcer_force_secure = 0]
config.baseURL = http://domain.tld
[else]
config.baseURL = https://domain.tld
[global]
It is untested.
Greetings
Marco :-)
Pieter wrote:
>
> Yes, there is indeed something in TSRef that should do the trick:
> [globalString = IENV:TYPO3_SITE_URL=http://www.vivant.org/t3/]
> config.baseURL = http://www.vivant.org/t3/
> [globalString = IENV:TYPO3_SITE_URL=https://www.vivant.org/t3/]
> config.baseURL = https://www.vivant.org/t3/
> [GLOBAL]
>
> But it does not work :-(
> When I try to access the page "http://www.vivant.org/t3/leden" the
> switch to HTTPS is made but the result is a page
> "https://www.vivant.org/t3/leden" with the Typo3 error:
> "Error. Reason: File "leden" was not found!"
>
> However, when I go to "https://www.vivant.org/t3/?id=45" (the same page
> but with the number of the page) everything looks fine. It is now even
> possible to go to this same page with "https://www.vivant.org/t3/leden/"
> without an error now. This makes me think the IENV:TYPO3_SITE_URL
> condition is working.
> But it is not possible now to go to the (non HTTPS page)
> "http://www.vivant.org/t3/home", this page now gives the error:
> "Error. Reason: File "home" was not found!"
>
> I have to go to "http://www.vivant.org/t3" first and then the non-HTTPS
> pages are working again.
>
> Help, what is happening here?
>
> Pieter
More information about the TYPO3-english
mailing list