Report this

What is the reason for this report?

Wordpress cannot acces html

Posted on March 8, 2021
Alex

By Alex

I cannot access my WordPress through HTTP, only works through HTTPS. I need to update the certification but certibot certifies through HTTP. The site is accessible through HTTPS, but screams “Danger, expired certificate.”

What can I try?

What I have tried.

  1. Changed .htaccess to not redirect to HTTPS.
  2. Changes the site to http://www.mysite.com in WordPress.
  3. Modified wp-config.php, define (“WP-SITEURL”,“WP_HOME”…

I did not change anything in MySQL, I am not familiar with SQL commands.



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!

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.

Hi @ALbundee,

It’s a possibility for the redirection to be made inside your virtual configuration file. If you are using an .htaccess file then it means you are using Apache. Find the Apache folder it’s usually:

for Ubuntu

/etc/apache2

for CentOS

/etc/httpd

Inside this folder, you should see another folder - sites-enabled. Find the Configuration file of your website there and please post it here. It’s possible the redirection is there and we might be able to spot it inside it.

Hi @ALbundee,

I see something interesting.

In your <VirtualHost *:80>, I can see

ServerName www.example.co.za

Please make sure you update it with your domain as I can see you haven’t editted out the domain anywhere else.

Additionally, I’ll recommend adding the main domain name as well steedfit.co.za and not only the www version otherwise people that are trying to reach it on - steedfit.co.za will not be able to. You can add steedfit.co.za to your ServerAlias section.

Regards, KFSys

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.