Applicable to:
- Plesk for Linux
Question
How to restrict HTTPS access for a website?
Answer
In case if it is required to make a website accessible only via HTTP and restrict HTTPS, the following actions should be performed:
-
Install a valid SSL certificate for the domain ;
-
Add the following rows to Additional directives for HTTPS field in Plesk > Domains > example.com> Additional Apache & nginx Settings :
CONFIG_TEXT: RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
Note: absence of the valid certificate will lead to the SSL Certificate Error in an attempt to open the required website. The redirect rule will not be working until Continue for this website button (or its analogue) will be pressed.
Comments
0 comments
Please sign in to leave a comment.