# Naming HTML docs

**URL:** <https://forum.infinityfree.com/t/naming-html-docs/15393>\
**Category:** Hosting Support\
**Created:** [May 2, 2019, 3:58pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393 "2019-05-02T15:58:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon80833469](https://forum.infinityfree.com/letter_avatar/anon80833469/32/6_22734026db12803ebb3e059622ac3534.png) [@anon80833469](https://forum.infinityfree.com/u/anon80833469)\
**Post date:** [May 2, 2019, 3:58pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/1 "2019-05-02T15:58:34Z")

</div>

I am learning HTML/CSS from a book and when I save a html doc, sometimes the browser will open it and sometimes not. Is there a naming convention? For example, I named a file sample.html, and the browser did not show the page and I get error 404. What am I doing wrong\>

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [May 2, 2019, 4:33pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/2 "2019-05-02T16:33:15Z")

</div>

Hi

It looks that the name “sample” is blacklisted

### How to Name Files

home page = index.html or index.php

Do Not Use Special Characters

For best results, you should only use the letters a-z, A-Z, the numbers 0-9, hyphens (-), underscores (\_) and periods (.). Any other character could get you in trouble, causing the file not to load or the page to load incorrectly.  
it is best to use lowercase letters, also Do Not Use Any Spaces

---

<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:** [May 2, 2019, 8:45pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/3 "2019-05-02T20:45:20Z")

</div>

> [@Oxy](#):
>
> It looks that the name “sample” is blacklisted

I double checked this, but it doesn’t seem to be blacklisted.

However, it is very important to note that our servers (like almost all web hosting servers) are cAsE sEnSiTiVe. So if you if you have a domain [example.com](http://example.com) and a file named Sample.HTML, then you need to enter [example.com/Sample.HTML](http://example.com/Sample.HTML) in your browser. If you try to visit [example.com/sample.html](http://example.com/sample.html) or [example.com/Sample.Html](http://example.com/Sample.Html), you will get a 404 error, because `Sample.HTML` and `sample.html` are different files.

To avoid this, I second what @Oxy said: always use lowercase letters in website file and folder names.

---

<div class="post-metadata">

**Author:** ![anon80833469](https://forum.infinityfree.com/letter_avatar/anon80833469/32/6_22734026db12803ebb3e059622ac3534.png) [@anon80833469](https://forum.infinityfree.com/u/anon80833469)\
**Post date:** [May 3, 2019, 1:39pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/4 "2019-05-03T13:39:39Z")

</div>

Hi,

Now I have another file and I still can’t open it:  
[http://www.senseanalytics.epizy.com/headfirstlounge.html](http://www.senseanalytics.epizy.com/headfirstlounge.html)

why is this?

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [May 3, 2019, 1:54pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/5 "2019-05-03T13:54:38Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/2X/f/fbfaae905dc54eacd23eec84f9efc8bd5ce8c48d.png)

This file does not exist and this is probably the reason (it contains something that triggered protection)

[https://infinityfree.net/support/why-are-my-files-deleted-after-uploading/](https://infinityfree.net/support/why-are-my-files-deleted-after-uploading/)

---

<div class="post-metadata">

**Author:** ![anon80833469](https://forum.infinityfree.com/letter_avatar/anon80833469/32/6_22734026db12803ebb3e059622ac3534.png) [@anon80833469](https://forum.infinityfree.com/u/anon80833469)\
**Post date:** [May 3, 2019, 1:56pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/6 "2019-05-03T13:56:43Z")

</div>

the file is in the new folder

---

<div class="post-metadata">

**Author:** ![anon80833469](https://forum.infinityfree.com/letter_avatar/anon80833469/32/6_22734026db12803ebb3e059622ac3534.png) [@anon80833469](https://forum.infinityfree.com/u/anon80833469)\
**Post date:** [May 3, 2019, 1:58pm UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/7 "2019-05-03T13:58:10Z")

</div>

I understand that I can create subdirectories

---

<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:** [May 4, 2019, 10:23am UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/8 "2019-05-04T10:23:35Z")

</div>

If the file is in a sub folder, you need to include the sub folder in the URL as well. So if you upload the file to the “New” folder, you can access it through the URL [http://www.senseanalytics.epizy.com/New/headfirstlounge.html](http://www.senseanalytics.epizy.com/New/headfirstlounge.html)

---

<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:** [July 3, 2019, 10:23am UTC](https://forum.infinityfree.com/t/naming-html-docs/15393/9 "2019-07-03T10:23:59Z")

</div>

Closed on July 3, 2019, 10:23am UTC

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