Hallo,
danke an Julius und localhorst.
Die Umleitung von remso.de und remso.org nach https://remso.eu funktioniert mit
# 2020-08-03 remso.de/.htaccess
ErrorDocument 404 /error_404.php
Redirect 301 / https://remso.eu/
Leider funktionieren eure beiden Vorschläge nicht beim Aufruf von remso.eu:
ErrorDocument 404 /error_404.php
# Redirect 301 / https://remso.eu/
# 2020-08-01 https://forum.selfhtml.org/self/2020/jul/31/cookies-mit-php-und-javascript-setzen-und-lesen/1774018#m1774018
RewriteEngine On
# Julius:
# Domain kanonisieren
RewriteCond %{HTTP_HOST} !=remso.eu
RewriteRule (.*) https://remso.eu/$1 [R=301,L]
# localhorst:
# RewriteCond %{HTTP_HOST} !=^remso\.eu
# RewriteRule (.*) https://remso.eu/$1 [QSA, R=301,L]
# HTTPS erzwingen
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log. Apache/2.4.25 (Debian) Server at remso.eu Port 80
Linuchs