V
V
Valeri Lavrov2016-04-07 21:57:34
PHP
Valeri Lavrov, 2016-04-07 21:57:34

How to make HTTPS instead of HTTP without redirects?

Installed SSL on the domain. When you enter the address in the address bar "domain.ru" opens "http:// domain.ru"
How to make it open https without .htaccess? Can this be done from the server side?
PU: ISPManager
Server: Apache

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Ukolov, 2016-04-07
@alexey-m-ukolov

Without a redirect - no way, these are two different URLs, in fact.
But without .htaccess, you can either check the requested protocol on the backend, or on the client via js and redirect to the desired protocol.

S
Sanes, 2016-04-07
@Sanes

There is a corresponding option in ISPmanager in www-domain.

M
msena, 2016-04-19
@msena

This cannot be done.
The site should load equally well under both protocols. In robots prescribe the main mirror and wait for a miracle. Google will give the result in about a month without losing PR, Yandex will reset the TIC and update the issue in tech. 2-3 months. Tested empirically with the help of Plato's recommendations. If you want https then do it for the new domain.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question