# How to achieve HTTPS on my custom sub-domain?

**URL:** <https://forum.infinityfree.com/t/how-to-achieve-https-on-my-custom-sub-domain/89341>\
**Category:** Hosting Support\
**Created:** [January 30, 2024, 3:22pm UTC](https://forum.infinityfree.com/t/how-to-achieve-https-on-my-custom-sub-domain/89341 "2024-01-30T15:22:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon73919534](https://forum.infinityfree.com/letter_avatar/anon73919534/32/6_449c533f586939b6e5f246632a46421f.png) [@anon73919534](https://forum.infinityfree.com/u/anon73919534)\
**Post date:** [January 30, 2024, 3:22pm UTC](https://forum.infinityfree.com/t/how-to-achieve-https-on-my-custom-sub-domain/89341/1 "2024-01-30T15:22:23Z")

</div>

### Website URL

[https://links.approjectband.com](https://links.approjectband.com)

### Error Message

ERR\_SSL\_PROTOCOL\_ERROR

### Other Information

I use a .htaccess for my domain [www.approjectband.com](http://www.approjectband.com). It is located under the main htdocs folder. This ensures that the site uses HTTPS.

I’ve copied this same file to my sub-domain: [links.approjectband.com/htdocs/.htaccess](http://links.approjectband.com/htdocs/.htaccess)

If I remove the .htaccess file, then I can access my sub-domain, but it’s HTTP and not HTTPS.

---

<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:** [January 30, 2024, 3:25pm UTC](https://forum.infinityfree.com/t/how-to-achieve-https-on-my-custom-sub-domain/89341/2 "2024-01-30T15:25:34Z")

</div>

The .htaccess file is fine. However, the .htaccess file also includes code to force all traffic to HTTPS. But [link.approjectband.com](http://link.approjectband.com) does not support HTTPS yet.

For your main site, you’ve already setup HTTPS, but not for the subdomain. And yes, HTTPS must be setup for every site individually, even for subdomains.

You seem to have some experience already with getting SSL on your site, but here is the guide if you need a reminder:

> [@How to get Free SSL (HTTPS) on InfinityFree](https://forum.infinityfree.com/t/how-to-get-free-ssl-https-on-infinityfree/49323):
>
> If you’re using free hosting with your own domain or a subdomain, you’ll want to make your website work over HTTPS (SSL). Fortunately, InfinityFree provides all the tools you need to make it so. If you like videos better then text guides, scroll on down to the bottom of this guide. This guide uses the control panel functions and the Free SSL Certificates tool provided by InfinityFree to get SSL up and running on your site. This article only applies to custom domains Free subdomains (like your…

---

<div class="post-metadata">

**Author:** ![anon73919534](https://forum.infinityfree.com/letter_avatar/anon73919534/32/6_449c533f586939b6e5f246632a46421f.png) [@anon73919534](https://forum.infinityfree.com/u/anon73919534)\
**Post date:** [January 30, 2024, 3:29pm UTC](https://forum.infinityfree.com/t/how-to-achieve-https-on-my-custom-sub-domain/89341/3 "2024-01-30T15:29:27Z")

</div>

OH I need an SSL for the sub-domain as well! Thank you, I did not realize it worked that way.

---

<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 6, 2024, 3:30pm UTC](https://forum.infinityfree.com/t/how-to-achieve-https-on-my-custom-sub-domain/89341/4 "2024-02-06T15:30:26Z")

</div>

Closed on February 6, 2024, 3:30pm UTC

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