ARCADIS IS HIRING!!! Company : Arcadia Position : Software Engineer Experience : Bs/Ms Degree : BS in CS Apply Link: Apply Here
HTTP:-
So basically HTTP stands for Hyper Text Transfer Protocol. which helps to fetching of resources like HTML File. It is working as link intermediate between any data exchange on the Web and it is a client-server protocol, which means requests are initiated by the recipient, usually the Web browser.
HTTPS:-
HTTPS protects the communication between client and server from being intercepted and tampered with by hackers. This provides confidentiality, integrity and authentication to the vast majority of Todays web traffic. Any website that shows a lock icon in the address bar is using HTTPS.WARNING!!
BEFORE DOING THIS ALL STEPS YOUR SITE SHOLUD HAVE A SSL CERTIFICATE INSTALL IN YOUR WEBSITE.
So Today we will see that how we can do this with some simple line of code:-
Step 1:- First Open your hosting provider. After opening you will be able to see many options.
Step 2:- Then click on File Manager on your hosting provider website.
Step 3:- Then open your all the file and search for .htaccess file if its not there then make sure you are viewing this file in all types if not then make it.
Step 4:- How to select view in all types of files, Go to your setting and select also view dot files and also there is no .htaccess file then Don't Worry.
Step 5:- Make a file named with .htaccess and write the following code.
Step 6:- This is the main step for converting your website to HTTPS.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URL} [L,R=301]
Step 7:- Save it and now run your website and now you can the see the secure connection is there and the lock icon instead of unlock

Comments
Post a Comment