This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to automatically redirect http to https?

I recently installed an SSL Certificate to "" address and now I need to have all traffic go to "" how do I do that? Here is what I have so far but it doesn't seem to be working.

.htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  • Way out of scope for this forum, but does this help?

    If you want HTTP traffic to redirect to HTTPS, you can add this additional server block at the top of the file (replace the highlighted parts with your own information):

    server {
        listen 80;
        rewrite ^/(.*)$1 permanent;