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 (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 (, 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
Answer a question...

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

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')

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.