M
M
Matvey Tomilov2017-08-22 12:18:19
MODX
Matvey Tomilov, 2017-08-22 12:18:19

How to make an automatic redirect from http to https?

Good afternoon! there is a site that has a certificate and https is registered in the modx panel, also in index.php
But the site still stubbornly opens in http, how to make it always redirect to https?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kuznetsov, 2017-08-22
@DarkRaven

In general, you can see it here: https://modx.pro/help/8062/
For my site, I was able to set it up in the control panel, in Plesk.

M
maxt888, 2017-08-22
@maxt888

In .htaccess file

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question