Answer the question
In order to leave comments, you need to log in
How to organize a 301 redirect from http://www to https://?
Hello, we have moved to the https protocol.
Used by ISPManager 5
In the domain settings in isp, the item "Redirect HTTP requests to HTTPS" is checked.
http is redirected to https without problems.
But here's how to set up a redirect from http: //www directly to https:// without www?
The fact is that if you specify in .htaccess
# Rewrite www
RewriteCond %{HTTP_HOST} ^www.site.ru$
RewriteRule (.*) https://site.ru/$1 [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