From .htaccess file You can force all of your pages to use HTTPS. To do this you will need to modify your .htaccess file. Apache’s mod_rewrite makes it easy to require SSL to be used on your site and to gently redirect…
Apache Force SSL on all pages using mod_rewrite
Letzte Aktualisierung: April 2026
Lesezeit: ca. 2 Min.
Zielgruppe: Boxis-Kunden und Administratoren.
Was Sie erreichen
- Sie führen die beschriebene Konfiguration oder Aufgabe für Ihren Boxis-Dienst aus.
Voraussetzungen
- Zugriff auf die beschriebene Oberfläche, das Gerät oder den Server.
- Informationen oder Zugangsdaten von Boxis (Vertrag, Willkommens-E-Mail oder Kundenbereich).
Hinweis Boxis: Angebote und Ansichten können abweichen. Bei Unklarheiten Ticket mit Service-Referenz öffnen.
From .htaccess file
You can force all of your pages to use HTTPS. To do this you will need to modify your .htaccess file.
Apache’s mod_rewrite makes it easy to require SSL to be used on your site and to gently redirect users who forget to add the https when typing the URL. Using Apache to redirect http to https will make sure that your site (or a part of it) will only be accessed by your customers using SSL. This is better than using SSLRequireSSL because users often forget to type in the https and will be automatically redirected.
Before you can set up an Apache redirect from http to https, you will need to do the following:
- Make sure your SSL certificate is successfully installed so you can access https://www.example.com
- Make sure mod_rewrite is enabled in Apache
Now you just need to edit your httpd.conf file or the file where your virtual host is specified and add these lines to redirect http to https:
Using the Code Editor in the File Manager, add these lines to the beginning of the .htaccess file.
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R=301,L]
In many cases, you can also just add those lines to a file named .htaccess in the folder that you want to redirect http to https.
Now, when a visitor types http://www.yoursite.com/mypage.htm the server will automatically redirect http to https so that they go to https://www.yoursite.com/mypage.htm
Note: You can also redirect a single page from http to http in Apache by using this in your configuration file or .htaccess file:
RewriteEngine OnRewriteRule ^apache-redirect-http-to-https\.html$ https://www.example.com/apache-redirect-http-to-https.html [R=301,L]
Substitute example.com with your domain name.
Erwartetes Ergebnis
- Der Dienst verhält sich wie in den Schritten beschrieben.
Bei Problemen
- Schritt wiederholen, Tippfehler prüfen (Hostnamen, Passwörter, Ports).
- Fehlermeldung oder Screenshot notieren.
Ticket im Kundenbereich mit Dienstname, Uhrzeit und ggf. Traceroute bei Netzwerkthemen.
Siehe auch
- Weitere Artikel derselben Kategorie in der Boxis-Wissensdatenbank.
/knowledgebase/— Startseite der Wissensdatenbank.