# I deleted and reupleaded index.html and now it redirects me there. How to fix it?

**URL:** <https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099>\
**Category:** Hosting Support\
**Created:** [April 5, 2022, 5:32pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099 "2022-04-05T17:32:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon92974678](https://forum.infinityfree.com/letter_avatar/anon92974678/32/6_22734026db12803ebb3e059622ac3534.png) [@anon92974678](https://forum.infinityfree.com/u/anon92974678)\
**Post date:** [April 5, 2022, 5:32pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/1 "2022-04-05T17:32:47Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/9/d/9d20bfbdaf66f471dbb8bb8bc5c8ed93e4b1ed1c.png)

---

<div class="post-metadata">

**Author:** ![lovebug](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lovebug/32/57624_2.png) [@lovebug](https://forum.infinityfree.com/u/lovebug)\
**Post date:** [April 5, 2022, 5:37pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/2 "2022-04-05T17:37:05Z")

</div>

what is your website url ? so i can check it

---

<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:** [April 5, 2022, 5:42pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/3 "2022-04-05T17:42:08Z")

</div>

Hello.

Note that it is “index.html” not “Index.html”. InfinityFree servers are case-sensitive.

---

<div class="post-metadata">

**Author:** ![anon92974678](https://forum.infinityfree.com/letter_avatar/anon92974678/32/6_22734026db12803ebb3e059622ac3534.png) [@anon92974678](https://forum.infinityfree.com/u/anon92974678)\
**Post date:** [April 5, 2022, 5:42pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/4 "2022-04-05T17:42:31Z")

</div>

[http://nbn-d.42web.io/](http://nbn-d.42web.io/)

---

<div class="post-metadata">

**Author:** ![anon92974678](https://forum.infinityfree.com/letter_avatar/anon92974678/32/6_22734026db12803ebb3e059622ac3534.png) [@anon92974678](https://forum.infinityfree.com/u/anon92974678)\
**Post date:** [April 5, 2022, 5:43pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/5 "2022-04-05T17:43:25Z")

</div>

It works now, thanks a lot

---

<div class="post-metadata">

**Author:** ![lovebug](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lovebug/32/57624_2.png) [@lovebug](https://forum.infinityfree.com/u/lovebug)\
**Post date:** [April 5, 2022, 5:43pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/6 "2022-04-05T17:43:27Z")

</div>

rename Index.html to index.html and all should be fine

— edit —  
greenreader beat me to it 😀

---

<div class="post-metadata">

**Author:** ![Thewebuser22](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/thewebuser22/32/25592_2.png) [@Thewebuser22](https://forum.infinityfree.com/u/Thewebuser22)\
**Post date:** [April 5, 2022, 6:21pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/7 "2022-04-05T18:21:03Z")

</div>

There is also a way to treat a file that has a name other than “index” as the main one. You would have to look it up though, I don’t know it off of the top of my head.

---

<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:** [April 5, 2022, 6:37pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/8 "2022-04-05T18:37:56Z")

</div>

> [@Thewebuser22](#):
>
> There is also a way to treat a file that has a name other than “index” as the main one.

Correct. You can set index pages with htaccess.

[https://tinkertechlab.com/webhosting/htaccess/setting-index-pages](https://tinkertechlab.com/webhosting/htaccess/setting-index-pages)

---

<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:** [April 12, 2022, 6:38pm UTC](https://forum.infinityfree.com/t/i-deleted-and-reupleaded-index-html-and-now-it-redirects-me-there-how-to-fix-it/60099/9 "2022-04-12T18:38:55Z")

</div>

Closed on April 12, 2022, 6:38pm UTC

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