S
S
Shing2019-04-12 10:39:57
htaccess
Shing, 2019-04-12 10:39:57

How to redirect http/https -> https://www?

Now it's like this, http to https:

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]

But it doesn't redirect https:// to https://www.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question