Hosting for your business?

ST-Hosting is our offering for private customers. Business customers are also welcome to use ST-Hosting.

Our business brand NUXOA offers products and services tailored specifically to business customers:

Continue to NUXOA
ST-HOSTING / MANUAL

Your project. Your manual.

Guides and answers about your products. Find the right topic and get started.

GUIDE

Force HTTPS using .htaccess

All the basics of forcing HTTPS with .htaccess

Often the question is posed how to use .htaccess HTTPS that forces you to use HTTPS encryption as an end-user.
This is possible with a simple script, which you can insert arbitrarily.
You simply create a new file in the htdocs or httpdocs directory and name it .htaccess after that you use a rewrite rule.

The file should contain the following content:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* %{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Of course, the rule can be changed however you want depending on your own wishes.

← All topicsGet more help →

All optional services are switched off by default. Choose the services you would like to use.