# Problem with SSL Certificate – Cloudflare Error 526

**URL:** <https://forum.infinityfree.com/t/problem-with-ssl-certificate-cloudflare-error-526/117562>\
**Category:** Hosting Support\
**Created:** [February 6, 2026, 5:57pm UTC](https://forum.infinityfree.com/t/problem-with-ssl-certificate-cloudflare-error-526/117562 "2026-02-06T17:57:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avbora](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/avbora/32/64771_2.png) [@Avbora](https://forum.infinityfree.com/u/Avbora)\
**Post date:** [February 6, 2026, 5:57pm UTC](https://forum.infinityfree.com/t/problem-with-ssl-certificate-cloudflare-error-526/117562/1 "2026-02-06T17:57:16Z")

</div>

Hello InfinityFree Support Team,

I am having an issue with my hosting account regarding the document root of my domain.

Domain: avbora.online

Hosting Account: if0\_41089483

The domain is currently pointing to a subdirectory instead of the main root directory.

It appears as:

avbora.online/htdocs

However, I want the domain to be configured as the primary domain, so that it points directly to:

htdocs

Because of this, the website is not loading correctly and causes configuration issues.

Please let me know:

- If the domain is correctly set as the primary domain

- Or if you can adjust the document root so the domain points directly to htdocs

- Or if there are any steps I need to take to fix this from my side

Thank you for your help and support.

Best regards,

Mahmoud

 ![Screenshot_٢٠٢٦-٠٢-٠٦-١٩-٥٣-٠٩-٤٨_40deb401b9ffe8e1df2f1cc5ba480b12](https://forum-cdn.infinityfree.net/original/3X/d/e/de7d3e3b33b038f815afac8d47a1e8170428e559.jpeg)

 ![Screenshot_٢٠٢٦-٠٢-٠٦-١٩-٥٣-٥٣-٧٥_40deb401b9ffe8e1df2f1cc5ba480b12](https://forum-cdn.infinityfree.net/original/3X/d/0/d088cc981c25f7cf6aa9374b5c4bddb2d45a3017.jpeg)

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [February 6, 2026, 8:44pm UTC](https://forum.infinityfree.com/t/problem-with-ssl-certificate-cloudflare-error-526/117562/2 "2026-02-06T20:44:28Z")

</div>

> [@Avbora](#):
>
> The domain is currently pointing to a subdirectory instead of the main root directory.

That’s normal, move your website files to the directory that’s listed in the client area. Only the first domain you add to your account gets the /htdocs folder.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [February 7, 2026, 10:03am UTC](https://forum.infinityfree.com/t/problem-with-ssl-certificate-cloudflare-error-526/117562/3 "2026-02-07T10:03:46Z")

</div>

You don’t get to freely choose which folder a domain name is assigned to on free hosting. You can either setup the domain under a new folder, or link it to an existing domain.

So if you still have your original free subdomain set up, you can setup your own domain as an alias. If not, then this is just the location where the server will look for your website files.

To conclude that your website is not working because “the domain is not pointing to the right directory” is one way to look at it. You could also describe it as the website not working because “the website is not uploaded to the right location”. It’s the same situation, but a different way to look at it.

And while it’s not possible to fix the first issue, you can fix the second one:

> [@How to move a website to a different directory](https://forum.infinityfree.com/t/how-to-move-a-website-to-a-different-directory/88900):
>
> Every website is linked to a certain htdocs directory on your account. But sometimes you need to move a website from one htdocs directory to another. This may be necessary if: You are moving to a different domain name (e.g. a free subdomain to a custom domain). You have recreated your domain name and it was assigned to a different directory. Fortunately, there is no need to rebuild your website from scratch. It’s not difficult to move your website from one directory to another. How to move a…

However, the error from Cloudflare is not related to website files at all. It says “Invalid SSL Certificate”, which means that it’s an SSL issue.

This can be caused by a few things:

- **Your website is using “Full (strict)” SSL mode in Cloudflare, but you do not have a valid SSL certificate setup on our end.** You can fix this by either changing Cloudflare to “Full” SSL mode, or by setting up a valid SSL certificate through us. And to setup a valid SSL certificate, you can either get a free SSL certificate through us, or upload a Cloudflare Origin Certificate.
- **Your website is not pointing to the right IP address.** And the IP address that it actually points to does not have the right settings. If you’re concerned about this, please share a screenshot of your DNS records at Cloudflare.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [February 14, 2026, 10:04am UTC](https://forum.infinityfree.com/t/problem-with-ssl-certificate-cloudflare-error-526/117562/4 "2026-02-14T10:04:33Z")

</div>

Closed on February 14, 2026, 10:04am UTC

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