# Domain Pointing

**URL:** <https://forum.infinityfree.com/t/domain-pointing/72334>\
**Category:** Hosting Support\
**Created:** [February 15, 2023, 1:49pm UTC](https://forum.infinityfree.com/t/domain-pointing/72334 "2023-02-15T13:49:12Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [February 16, 2023, 1:06pm UTC](https://forum.infinityfree.com/t/domain-pointing/72334/17 "2023-02-16T13:06:22Z")

</div>

If you don’t want to see the default welcome page then delete index2.html  
and create your index file

* * *

### Make sure your website has a valid index page

If you link directly to a file on your account (e.g. [http://example.com/about.html](http://example.com/about.html)), then the specific file will be loaded (`about.html` in that case). But what happens if you don’t link directly to a file, but to a directory instead (e.g. [http://example.com/blog/](http://example.com/blog/) or just [http://example.com/](http://example.com/))?

In that case, the server will look for a valid “index file”. An index file is typically file with the name `index.php`, `index.html`, `index.htm` or `index2.html`. When trying to open a folder, the server will look for one of those files, and open the first one shown here.

If you have set up your website correctly, there should be a file like that directly in the htdocs folder. If not, it will load the `index2.html` file, which is the welcome page.

Please note that file names on InfinityFree (and almost all hosting providers) are cAsE sEnSiTiVe, so please make sure the file is not called `Index.php` or `index.HTML`, as these files will not be loaded.

You can also customize which file is loaded by default using .htaccess rules. By adding a rule like `DirectoryIndex home.php index.php index.html`, the server will try a `home.php` file before trying the index.php and index.html files. Learn more about [how to add custom .htaccess rules](https://forum.infinityfree.com/t/how-to-set-custom-htaccess-rules/49350).

---

_[View the full topic](https://forum.infinityfree.com/t/domain-pointing/72334)._
