Question

Wordpress cannot acces html

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.


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.

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.

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

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.