EasyEngine / EasyEngine/site-command

Display message when not adding www redirection

Offen
#232 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
good first issue
Vorherrschende Sprache
PHP
Sterne
18
Forks
28
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

EasyEngine adds www redirections(`www.example.com` -> `example.com` or vice-versa) only if it finds that domain with www is pointed to the server. The reason for doing so is that to add https redirect from `www.example.com -> example.com`, we need a cert that is valid for both domains `www.example.com` and `example.com`. And to get that certificate, we need to ensure www is pointed to the server.

This leads to confusion among users who find that sometimes the redirection file is added, while sometimes it is not - https://community.easyengine.io/t/ee-site-create-503-service-temporarily-unavailable/12032

Solution to this issue is:
1. Always add HTTP www redirection
2. If the site has SSL and www domain is pointed, add https www redirection
3. If the site has SSL and www domain is not pointed, show a message on the user's screen that https redirection is not added as the domain is not pointed. Also, add a similar message as comment in the redirection config file.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.