V
V
Vadim Yagofarov2018-11-14 12:57:08
htaccess
Vadim Yagofarov, 2018-11-14 12:57:08

How to redirect from www to https?

It is not possible to make a redirect, the site is not accessible at all via the www protocol, and when I uncommented the lines in htaccess, nothing has changed, i.e. redirect is not happening

Не удается получить доступ к сайту Не удалось найти IP-адрес сервера .
Выполните диагностику сети в Windows.
DNS_PROBE_FINISHED_NXDOMAIN

#редирект с www на без www
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^ [NC]
#RewriteRule (.*) /$1 [R=301,L]

What is the problem and where is the error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrej Sharapov, 2018-11-14
@GIRUPC

https://github.com/Claud/.htaccess/blob/master/.ht...
https://gist.github.com/madeas/5a5d675268db18731c1...
https://github.com/h5bp/server- configs-apache/blob...
Explore, maybe you will find a solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question