Gelöst

Weiterleitung auf www-Version funktioniert nicht

vor 11 Monaten

Hallo,

wir wollen eine Weiterleitung von non-www auf www per htaccess einrichten, es funktioniert aber leider nicht.

Wir haben in der htaccess folgendes eingetragen (siehe https://homepagecenter.telekom.de/hilfe/301-weiterleitung😞
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

Anschließend den Server neu gestartet, indem wir die PHP-Version von 7.4 auf 8.0 und wieder zurück geändert haben (siehe https://homepagecenter.telekom.de/hilfe/individuelle-serverkonfiguration).

Die httpd.conf im Verzeichnis etc ist auch vorhanden:
<Directory /home/www/public_html>
AllowOverride All
</Directory>

Wo liegt der Fehler?

Vielen Dank.

174

10

  • Akzeptierte Lösung

    akzeptiert von

    vor 11 Monaten

    @Stahlbau-Ziemann  schrieb:
    Somit hätte sich dann auch o.g. Fehlermeldung erledigt

    Genau die Fehlermeldung verhindert, dass es funktioniert. Ohne gültiges Zertifikat, hat die Weiterleitung keine Wirkung, da sie gar nicht erst geladen wird, weil dem Zertifikat nicht getraut wird. 

     

    Wenn dann muss es direkt in die httpd.conf, falls das bei der Telekom funktioniert. Ansonsten muss der zertifikatfehler behoben werden. 

    0

Beliebte Tags letzte 7 Tage

Cookies and similar technologies

We use cookies and similar technologies (including ) on our website to save, read out and process information on your device. In doing so, we enhance your experience, analyze site traffic, and show you content and ads that interest you. User profiles are created across websites and devices for this purpose. Our partners use these technologies as well.


By selecting “Only Required”, you only accept cookies that make our website function properly. “Accept All” means that you allow access to information on your device and the use of all cookies for analytics and marketing purposes by Telekom Deutschland GmbH and our partners. Your data might then be transferred to countries outside the European Union where we cannot ensure the same level of data protection as in the EU (see Art. 49 (1) a GDPR). Under “Settings”, you can specify everything in detail and change your consent at any time.


Find more information in the Privacy Policy and Partner List.


Use of Utiq technology powered by your telecom operator


We, Telekom Deutschland GmbH, use the Utiq technology for digital marketing or analytics (as described on this consent notice) based on your browsing activity across our websites, listed here (only if you are using a supported internet connection provided by a participating telecom operator and consent on each website).

The Utiq technology is privacy centric to give you choice and control.

It uses an identifier created by your telecom operator based on your IP address and a telecom reference such as your telecom account (e.g., mobile number).

The identifier is assigned to the internet connection, so anyone connecting their device and consenting to the Utiq technology will receive the same identifier. Typically:

  • on a broadband connection (e.g., Wi-Fi), the marketing or analytics will be performed based on the browsing activities of consenting household members’.
  • on mobile data, the marketing will be more personalised, as it will be based on the browsing of the individual mobile user only.

By consenting, you confirm that you have permission from the telecom account holder to enable the Utiq technology on this internet connection.

You can withdraw this consent anytime via "Manage Utiq" at the bottom of this site or in Utiq’s privacy portal (“consenthub”). For more, see Utiq's privacy statement.