# 403 Error

**URL:** <https://forum.infinityfree.com/t/403-error/90444>\
**Category:** Hosting Support\
**Created:** [February 26, 2024, 6:35am UTC](https://forum.infinityfree.com/t/403-error/90444 "2024-02-26T06:35:50Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 26, 2024, 6:35am UTC](https://forum.infinityfree.com/t/403-error/90444/1 "2024-02-26T06:35:50Z")

</div>

Please I have uploaded all documents cleared every cache but yet 403 error displaying more than a week now  
Please help

---

<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:** [February 26, 2024, 7:04am UTC](https://forum.infinityfree.com/t/403-error/90444/2 "2024-02-26T07:04:31Z")

</div>

Please do not hijack topics.  
What is your domain?

> [@Jibson](#):
>
> 403 error displayin

Did you read this?

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/docs?topic=58664):
>
> Getting a 403 error means the server is refusing to show your webpage. Here are the most common causes and how to fix them: 1. Website Files Are in the Wrong Location The Issue: Your domain might be pointing to an empty or non-existent folder. How to Check: Log into your [InfinityFree client area](https://dash.infinityfree.com) Go to Accounts → [Select your account] → Domains → [Find your domain] → Manage Find the Directory Status card, and look at the Directory displayed there Understanding the folder structure: Your fi…

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 26, 2024, 11:13am UTC](https://forum.infinityfree.com/t/403-error/90444/3 "2024-02-26T11:13:01Z")

</div>

Yes I did

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 26, 2024, 11:15am UTC](https://forum.infinityfree.com/t/403-error/90444/4 "2024-02-26T11:15:38Z")

</div>

Here is my Domain name: [jibrin.wuaze.com](http://jibrin.wuaze.com)  
Thank you.

---

<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:** [February 26, 2024, 4:30pm UTC](https://forum.infinityfree.com/t/403-error/90444/5 "2024-02-26T16:30:01Z")

</div>

I checked your site, and there is no index file in your htdocs directory.

Please make sure you website has an index file and it’s uploaded to the right location.

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/docs?topic=58664#the-directory-does-not-contain-an-index-file-1):
>
> Getting a 403 error means the server is refusing to show your webpage. Here are the most common causes and how to fix them: 1. Website Files Are in the Wrong Location The Issue: Your domain might be pointing to an empty or non-existent folder. How to Check: Log into your [InfinityFree client area](https://dash.infinityfree.com) Go to Accounts → [Select your account] → Domains → [Find your domain] → Manage Find the Directory Status card, and look at the Directory displayed there Understanding the folder structure: Your fi…

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 26, 2024, 11:29pm UTC](https://forum.infinityfree.com/t/403-error/90444/6 "2024-02-26T23:29:36Z")

</div>

Thank you it worked but images and audio are not displaying

---

<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:** [February 27, 2024, 9:31am UTC](https://forum.infinityfree.com/t/403-error/90444/7 "2024-02-27T09:31:38Z")

</div>

Yes, your main page is loading now, but all the images cannot be found.

The issue seems similar though: please make sure that the other files of your website are also uploaded to the right location with the right name, and referenced with the corresponding URL.

File locations and names are important. You cannot just dump them in your account and expect the server to guess which file you may be interested in.

I noticed you uploaded a number of files to the root directory of your account, outside of the htdocs folder. Files uploaded there cannot be used, so you may want to move those to the htdocs folder.

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 27, 2024, 10:12am UTC](https://forum.infinityfree.com/t/403-error/90444/8 "2024-02-27T10:12:12Z")

</div>

You are great  
Thank you.

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 28, 2024, 8:39am UTC](https://forum.infinityfree.com/t/403-error/90444/9 "2024-02-28T08:39:55Z")

</div>

I uploaded the images, audio and video but not showing on the site but my trebedit is well displaying them.  
Please help me see if anything is wrong  
Domain name: [jibrin.wuaze.com](http://jibrin.wuaze.com)  
Thank you

---

<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 28, 2024, 10:23am UTC](https://forum.infinityfree.com/t/403-error/90444/10 "2024-02-28T10:23:39Z")

</div>

these are some addresses from your local PC - and you can’t use them

src = `storage/emulated/0/ ???`

 ![Screenshot 2024-02-28 111938](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/e/c/ecf1ea578f2ac89e78e20f0bf92a09afaf778faf.jpeg)

Your HTML is invalid and you have duplicate code like

 ![Screenshot 2024-02-28 112002](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/8/a/8ac0d8a4198196d7f93c6e016cf94dbad1f6f949.jpeg)

* * *

> **[W3Schools.com](https://www.w3schools.com/html/html_filepaths.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

> **[W3Schools.com](https://www.w3schools.com/html/html_basic.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

### How to Name Files/folders

Do Not Use Any Spaces !

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:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 28, 2024, 10:25am UTC](https://forum.infinityfree.com/t/403-error/90444/11 "2024-02-28T10:25:48Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [February 28, 2024, 10:29am UTC](https://forum.infinityfree.com/t/403-error/90444/12 "2024-02-28T10:29:41Z")

</div>

> [@Oxy](#):
>
> Do Not Use Any Spaces

If you used spaces then of course it’s a hassle, but those files can still be used with spaces being url encoded into `%20`.

Like `Awesome file` → `Awesome%20file` (At least I remembered that this worked)

Just a nice little addition, I know it’s better just not to use any spaces.

---

<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 28, 2024, 10:33am UTC](https://forum.infinityfree.com/t/403-error/90444/13 "2024-02-28T10:33:23Z")

</div>

it’s even worse when the directory is in question

![Screenshot 2024-02-28 113040](https://forum-cdn.infinityfree.net/original/3X/9/1/91f7c2587a30e2b17f87f8e6d2570b04fdffd33e.jpeg)

and all this later causes problems in the javascript code (if there is one), etc.  
So it is best to use the specified way of naming files and directories.

![image](https://forum-cdn.infinityfree.net/original/3X/f/6/f6e6fcfd39bce2ce52b5843d615570d741ec2223.png)

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 28, 2024, 8:05pm UTC](https://forum.infinityfree.com/t/403-error/90444/14 "2024-02-28T20:05:35Z")

</div>

Thank you

---

<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 29, 2024, 9:27am UTC](https://forum.infinityfree.com/t/403-error/90444/15 "2024-02-29T09:27:40Z")

</div>

Do you understand everything mentioned above or do you still need help?

  

In short, one of the ways to arrange all that is:

inside the htdocs folder

create a folder `images` and upload the desired images inside (you name each image to something so you can recognize it)

create a folder `audio` and upload .aac files inside (name each according to your wish)

create a folder `video` and upload .mp4 files inside (name each according to your wish)  
Note: it is better to use YouTube because the max file size on the hosting is 10MB, which is too small for videos of higher resolutions and duration.

* * *

Then you enter the correct paths in the HTML code from your website

example:

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

and of course correct many other errors that your HTML code contains

* * *
  

If that’s too much for you

> [@How to build a new website](https://forum.infinityfree.com/docs?topic=49313):
>
> Did you just get a new InfinityFree account and want to know what to do first? This article should help you get on your way! Decide how to build your website With InfinityFree, you get many different options on how to build your website. For example, you could: Use a drag and drop website builder. Use a Content Management System (CMS) like WordPress. Code your own website with HTML or PHP. Build a website with a drag and drop website builder An easy way to build a website is by using a drag …

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 29, 2024, 6:21pm UTC](https://forum.infinityfree.com/t/403-error/90444/16 "2024-02-29T18:21:30Z")

</div>

Thank you so much you made my day better.

---

<div class="post-metadata">

**Author:** ![Jibson](https://forum.infinityfree.com/letter_avatar/jibson/32/6_449c533f586939b6e5f246632a46421f.png) [@Jibson](https://forum.infinityfree.com/u/Jibson)\
**Post date:** [February 29, 2024, 8:39pm UTC](https://forum.infinityfree.com/t/403-error/90444/17 "2024-02-29T20:39:05Z")

</div>

Is there any required size for audio upload?

---

<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:** [March 1, 2024, 7:59am UTC](https://forum.infinityfree.com/t/403-error/90444/18 "2024-03-01T07:59:42Z")

</div>

> [@Why are my files deleted after uploading them](https://forum.infinityfree.com/t/49310):
>
> Sometimes, when you upload a file, the upload is completed but the file is deleted immediately afterwards. This is usually caused by one of the following issues: The file is not in a htdocs folder All websites files must be uploaded to either the main htdocs folder, or to the domain specific htdocs folder (like example.com/htdocs). You cannot upload files to other directories on your account. If you try to create or upload files anywhere else, they will be deleted automatically. The file type…

---

<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:** [March 8, 2024, 8:00am UTC](https://forum.infinityfree.com/t/403-error/90444/19 "2024-03-08T08:00:34Z")

</div>

Closed on March 8, 2024, 8:00am UTC

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