I got the following code in my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^example.de [NC]
RewriteRule ^(.*)$ https://www.example.de/$1 [L,R=301,NC]
</IfModule>
If I call the url without "www" everything works fine! But with "www" it ends with http 500 error! So on my development Server erverything works fine, with and without www! On Ionos Server I can do what I want I guess. I got https://www.expample.de in my Siteconfiguration of TYPO3 9.5 but it doesnt matter. Does anybody know a solution?
I think this is maybe not a .htaccess problem?!
Fix for IONOS hosted TYPO3 installations where adding www to the URL gives a 500 error:
/typo3/install.php
should be accessible with www in the URL.Settings
and open Configure Installation-Wide Options
[SYS][trustedHostsPattern]
where SERVER_NAME
is set by default, add your domain, for example. .*\.domain\.com
(There are other examples given in the install tool).