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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.