Report this

What is the reason for this report?

Http to Https redirection not working on Wordpress Digital Ocean Droplet One Click

Posted on December 1, 2022

Hi. I have the droplet with wordress.

wordpress-ubuntu-s-1vcpu-1gb-amd-sfo3-01 Apache, Ubuntu 20

I followed this instruction https://certbot.eff.org/instructions

Now it’s working. https://mydomain.com/ - ok

But http://mydomain.com/ doesn’t work =(

The redirect goes here https://root/:

error DNS_PROBE_FINISHED_NXDOMAIN

The .htaccess in /var/www/html:

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

Help me please

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.