Resource icon

Steps to redirect domain from HTTP to HTTPS in Plesk

Steps to redirect domain from HTTP to HTTPS in Plesk

HTTP – Hypertext transfer protocol. World Wide Web use the protocol namely called HTTP for transmitting and formatting the messages and commands. Your browser and web server runs on the basis of commands in that case, it needs a protocol to understand the meaning of command. Here, the HTTP plays a vital role to understand the command language and message transformation.

HTTPS – Hypertext transfer protocol secure. You have a definite path between the web server and website isn’t it? Your web server carries some information to website and your website reacts according to the web server information. This pathway should have secure way and so, we are using https to encrypt the information.

Why to change http to https?

HTTP is just a protocol and it helps to pass the information from web server to website. HTTPS gives a secure way to carry out information from web server to website. Instead to go for a normal protocol one can choose secure protocol by changing http to https.

Many users prefer https to secure their website since it’s another version for http. In this article, we are going to learn how to change http to https in plesk.

How to change http to https in plesk?

Let us start with .htaccess file editing part:

.htaccess takes the guidance for server action once if the server receives command action such as URL rewriting and redirection. It’s easy for you to change and upload the file using FTP. Moreover, all types of protocol have edit option or else you can go to SSH and text editor for file editing part.

Particular domain redirection

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourwebsite\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yorname.com/$1 [R,L]
Particular folder redirection

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} yourfolder
RewriteRule ^(.*)$ https://www.yorname.com/youfolder/$1 [R,L]
Website Traffic redirection:

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yorname.com/$1 [R,L]
Changing http to https through domain, folders and website may get delay in time and tough to understand the process. To make it easy for you, there is an option called plesk onyx. No need to do manual editing in .htaccess file instead goes for plesk onyx.

Note: Before starting the work please confirm whether SSL certificate is valid or not.

Step 1: Use login details to login plesk and search where websites & domain option remains. It might be on left side on the plesk.

Step 2: You need to choose the domain and then tap on the option hosting settings. You can see the security tab just click on it.

Step 3: In security tab, there is a checkbox called permanent SEO-safe 301 redirect from http to https and SSL/TLS support.

Step 4: By now, you will get the display of drop-down list corresponding to certificate. From that drop-down list, select SSL certificate. Finally, save the changes by tapping on OK.
Author
bhawanisingh
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from bhawanisingh

Top