Answer the question
In order to leave comments, you need to log in
Correct https redirect via .htaccess?
Now (before installing https) on the site there is such a code in .htaccess
RewriteEngine On
# Redirect from www to non-www (never use both)
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule .* http://%1/$0 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question