Advanced

Redirect HTTP to HTTPS in Apache

Posted by linuxize on · Post a comment
Linuxize.com; By linuxize
Mail this story
Print this story

There are several ways to redirect to HTTPS in Apache. If you have root access to the Linux server where Apache runs, the preferred way is to set up the redirection in the domain's virtual host configuration file. Otherwise, you can set up the redirection in the domain's .htaccess file.

There are many advantages of using HTTPS over HTTP, such as:

- All the data is encrypted in both directions. As a result, sensitive information cannot be read if intercepted. - Google Chrome and all other popular browsers will mark your website as safe. - HTTPS allows you to use the HTTP/2 protocol, which significantly improves the site performance. - Google favors HTTPS websites. Your site will rank better if served via HTTPS.

Full Story

  Nav
» Read more about: Groups: Apache

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post