# Index.html does not work for subdomain

**URL:** <https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010>\
**Category:** Hosting Support\
**Created:** [November 29, 2021, 9:30pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010 "2021-11-29T21:30:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [November 29, 2021, 9:30pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/1 "2021-11-29T21:30:04Z")

</div>

### epiz\_30478991 My website is [www.cevherhazirlama.com](http://www.cevherhazirlama.com)

I created a subdomain: [http://manganlidemircevheri.cevherhazirlama.com](http://manganlidemircevheri.cevherhazirlama.com)

But it does not work. I upload the index.html file to htdocs folder. Not in the subdomain folder. Is it correct? Why is the subdomain not running?

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![FlutterHoney](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/flutterhoney/32/17560_2.png) [@FlutterHoney](https://forum.infinityfree.com/u/FlutterHoney)\
**Post date:** [November 29, 2021, 9:37pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/2 "2021-11-29T21:37:05Z")

</div>

Your subdomain already works, _albeit an image you put there is broken_

---

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [November 29, 2021, 9:45pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/3 "2021-11-29T21:45:08Z")

</div>

Waooowwww. I cannot see the page. Maybe dns settings are taking time. I will wait and change the image url. Thank you…

---

<div class="post-metadata">

**Author:** ![FlutterHoney](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/flutterhoney/32/17560_2.png) [@FlutterHoney](https://forum.infinityfree.com/u/FlutterHoney)\
**Post date:** [November 29, 2021, 9:45pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/4 "2021-11-29T21:45:41Z")

</div>

You’re welcome 🙂

---

<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:** [November 29, 2021, 9:57pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/5 "2021-11-29T21:57:21Z")

</div>

Try clearing your cache.

---

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [November 29, 2021, 10:05pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/6 "2021-11-29T22:05:35Z")

</div>

There are interesting things. The image url is correct. Buti the image is not visible. The code in the index.html file is here:

What is wrong with the codes?

---

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [November 29, 2021, 10:07pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/7 "2021-11-29T22:07:51Z")

</div>

What is wrong with the source codes?

---

<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:** [November 29, 2021, 10:09pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/8 "2021-11-29T22:09:12Z")

</div>

Nothing is wrong with the code, everything is working. I will repeat…

Clear your cache.

---

<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:** [November 30, 2021, 9:59am UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/9 "2021-11-30T09:59:05Z")

</div>

The subdomain page is including images from the base domain. But that’s not going to work here, because our hosting doesn’t support image hotlinking. This means you cannot embed files hosted with us in _any_ other domain, including your own subdomain on the same account.

---

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [November 30, 2021, 12:05pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/10 "2021-11-30T12:05:19Z")

</div>

> [@Admin](#):
>
> cannot embed files hosted with us in _any_ other domain, in

I changed the image url. But, the opening of the subdomain by browser is not running most of time. I think this will take time. Thanks.

---

<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:** [November 30, 2021, 2:02pm UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/11 "2021-11-30T14:02:49Z")

</div>

Try clearing your cache. It is working fine for me.

---

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [December 1, 2021, 7:44am UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/12 "2021-12-01T07:44:24Z")

</div>

![problem](https://forum-cdn.infinityfree.net/original/3X/0/2/02abe1268b9c16d465a4fcdfa9a0a3ed9969b469.jpeg)

When i try to open the subdomain, always the error page is seen in my browser. Is it normal? How can i fix the problem?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [December 1, 2021, 7:59am UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/13 "2021-12-01T07:59:02Z")

</div>

Did you do this?

> [@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…

Working fine for me

 ![image](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/9/0/906ba860eb06a61738d480f454a271677216049f.jpeg)

---

<div class="post-metadata">

**Author:** ![anon85869308](https://forum.infinityfree.com/letter_avatar/anon85869308/32/6_449c533f586939b6e5f246632a46421f.png) [@anon85869308](https://forum.infinityfree.com/u/anon85869308)\
**Post date:** [December 1, 2021, 8:47am UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/14 "2021-12-01T08:47:01Z")

</div>

It is probably about my location. Thanks.

---

<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:** [December 8, 2021, 8:47am UTC](https://forum.infinityfree.com/t/index-html-does-not-work-for-subdomain/55010/15 "2021-12-08T08:47:43Z")

</div>

Closed on December 8, 2021, 8:47am UTC

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