Need to redirect all traffic to https on Apache Server

  1. Make sure mod_rewrite is loaded. There should be a line in your httpd.conf file that looks something like:

    LoadModule rewrite_module modules/

    Make sure it's uncommented.

  2. Make sure the directory that your htaccess file is in (should be your document root) is allowed to override server settings via htaccess. In your vhost or server config, there should be something along the lines of

    <Directory "/var/www/">
        AllowOverride All
        ... (some other stuff)

    Make sure the AllowOverride is at least FileInfo

  3. Make sure your document root is actually where your htaccess file is in. Your vhost config should have a line like:

    DocumentRoot /var/www/
  4. Make sure the document root is for the right vhost. If you have separate vhosts for SSL and non-SSL, make sure the htaccess file is in the document root for the non-SSL vhost.

Was this answer helpful?

 Print this Article

Also Read

SSL Overview

So you want an SSL certificate but aren't sure where to start? Well this is a good place. Each of...

How to Generate a Certificate Signing Request (CSR) using cPanel

Before you can generate a CSR you must first have a Dedicated IP number and must have already...

Documents Required for EV SSL Certificate Validation

What is an EV SSL Certificate? EV (Extended Validation) SSL is the most trusted web security...

Install SSL through WHM

To install the SSL Certificate through your WHM you will need to log into WHM first.You will want...

What is a DCV email?

In efforts to protect against potential fraud, SSL Vendors have recently increased security...