简体   繁体   中英

TYPO3 links from non-https to http

Goal: Every non-https link has to become https. Always.

Achieved by now:

  • Changed base-url to https
  • Each link is https IF I'm on non-http

My issue is stated at my second achievement. For some reasons the links targets to https if I am on a non-https page, otherwise to http. I know I could implement a work-around using .htaccess but this isn't the clean way and I want to implement it in a clean way.

What I've done to fix it:

I know one can force the protocoll for a single typo3 page and I can update all pages via database but in this case it's not possible as it's a multitree presentation and not every tree have to use https.

I also googled and read about config.baseUrl but I've changed that before I even googled.

On the presentation "Enforce https" having key "https" is installed but I can't find it in the Ext. Repository.

Further stuff:

I guess the issue is not caused by .htaccess but in any case: This in my .htaccess file

RewriteCond %{HTTP_HOST} ^mydomain\.de$
RewriteRule (.*) https://www.mydomain.de/$1 [R=301,L] 

Any help is appreciated.

Solution

The solution is to deactivate the Extension "https" which is installed in the TYPO3 presentation. Why? Well, for some reasons the extension replaces/renders the urls as absolute and which is even more weird with "http".

I proceed with the investigation and update the post later on with in depth details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM