No connection to Wordpress website via https possible

What is the name of the domain?

gamegalaxys.de

What is the error number?

ERR_TOO_MANY_REDIRECTS

What is the issue you’re encountering

HTTPS not working and no connection via Domain to my Server

What steps have you taken to resolve the issue?

Hello everyone,

I host a small online shop on my computer myself, but have been having problems correctly integrating an SSL certificate for a while.

I configured the web server on Ubuntu with LAMP and connected the domain “gamegalaxys.de” to Cloudflare. The corresponding A entry for forwarding to the IP 77.22.4.242 was also set.

My Wordpress runs over HTTP, which should stay that way for now (everything else seems to be quite complicated!?).

In Wordpress itself, the WP config file was placed on the following website:

(Unfortunately I had to write my configs in a pastbin because I am only allowed to post 4 links per topic as a new user))

What feature, service or problem is this related to?

I don’t know

Greetings,

Thank you for asking.

I am sorry to hear this.

Might be the key-point :point_up:

May I ask what SSL settings have you got selected under the SSL/TLS tab of Cloudflare dashboard for your domain name? :thinking: Seems like it’s Flexible SSL.

Therefrom, while you’re running on HTTP and not having HTTPS, possibly neither the SSL certificate installed, that’s the issue which you are unfortunately experiencing.

You’re stating in your config file to go over HTTPS, however the homeurl and site_url might still point to the HTTP version in your database, which creates the loop altough the Cloudflare SSL settings.

I’d suggest you to temporary Pause Cloudflare for your Website.

  1. Use the “Pause Cloudflare on Site” option from the Overview tab for your domain at dash.cloudflare.com .
  2. The link is in the lower right corner of that page.
  3. Give it five minutes to take effect, then make sure site is working as expected with HTTPS without any error
  4. Check with your hosting provider / cPanel AutoSSL / Certbot / Acme.sh and renew it
  5. Only then, when your website responds over HTTPS, you should un-pause Cloudflare and double-check your SSL/TLS setting to make sure it’s Full (Strict).

In case you do not have an SSL certificate, you can use Cloudflare SSL, if so, kindly make sure you follow the instructions as follows on the below article to setup an SSL certificate using Cloudflare CA Origin Certificate:

I would recommend below articles to propperly setup the SSL for your domain with Cloudflare:

For WordPress and HTTPS:

1 Like

Thank you very very much for this answer, it helped a lot!
Now my Wordpress runs over HTTPS without any problems. But when I try to switch Wordpress from my IP (wp-config.php WP_HOME and WP_SITEURL) to the domain https://gamegalaxys.de, I still have the same problems and don’t know exactly where they come from or what to do. In Apache I don’t see any connection requests (live logs) when I enter the website.

You’ve probably already mentioned the solution, but unfortunately I didn’t understand that part yet.

It’s definitely due to my Apache settings. Accessing the domain http://gamegalaxys.de (i.e. without HTTPS) worked partially. Unfortunately, as soon as you went to another page, the server IP was displayed again.

Have you tried with different Web browser?
Seems like it’s redirecting you locally as well then, or the configuration and setup was done on the IP instead of the hostname gamegalaxys.de?

So both WP_SITEURL & WP_HOME are HTTP or HTTPS in the database (not inside wp-config.php file)?

Screenshot 2024-08-20 235111

Yes

I tried to set up a lot, most of it in the wp-config and .htaccess or 000-default.conf files. Unfortunately it hasn’t worked so far. But the server is accessible via https and all pages on the website load correctly thanks to your message and linked guides.
The domain is directed to the server in the A entry and what I would then have to do is unclear to me, I have tried a lot in the meantime with less success. (probably because I don’t understand exactly what I’m doing)

Yes, this aswell

Thank you for sharing feedback information.

You have to implement a fix.
Please, make sure to change those values in your database (either using CLI or some interface like phpMyAdmin).

Instead of using IP https://77.22.xxx.xxx, use the hostname httpsgamegalaxys.de to prevent those redirection issues over HTTP(S).

Furthermore, if you’ve published some content, etc., could be once you log-in to your WordPress admin dashboard area, re-apply the settings related to the Permalink Structure.

Could be there are some links using IP instead of the domain name, and would still cause some redirection or openning issue to your visitor later.

(post deleted by author)

Now it works, after Updating the Entire Database and after reenabeling Strict Mode its now working perfectly!

Thank you very much for your help!!!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.