Question

Can't get https working on a Wordpress one-click install

I’ve got a Wordpress site set up with one-click.

I followed the various tutorials here and created a self-signed certificate and set it up with an Apache default-ssl.conf file. Apache is reloading, and the certificate is valid, according to ssllabs.com (4 As).

So the certificate is valid and Apache works fine.

If I go to my Wordpress site with https, I get redirected to http, and the browser indicates the site is not private/secure.

If I go into my Wordpress settings (or config.php) and change the site and home url to https:// instead of http, if I go to the site (https://sensitiveskinmagazine.com), the page no longer loads - it says it was redirected too many times. BUT I see the green lock in the upper left corner - it is a secure site.

Man I feel like I’m really close - any idea what’s going on here?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Try this: create a file called test.php in your webroot directory visit https://yourdomain.com/test.php

does it work? Getting the green lock? Okay, that means the settings in wordpress need to be updated…might be a plugin

does not work? still getting the redirect error? might be the .htaccess file…try deleting everything in your .htaccess

First of all, you can get green padlock with a self-signed certificate. Browsers will always going to trow an insecure connection error.

And about the redirect error, try adding these to wp-config.php

define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
       $_SERVER['HTTPS']='on';

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel