# Site showing 403 access denied

**URL:** <https://forum.infinityfree.com/t/site-showing-403-access-denied/92620>\
**Category:** Hosting Support\
**Created:** [April 22, 2024, 2:50am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620 "2024-04-22T02:50:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 2:50am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/1 "2024-04-22T02:50:37Z")

</div>

hii guyz !please help i have uploaded my folder in file manager but site showing 403 access denied error or earlier somthing else theme was displying .  
how to fux it

---

<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:** [April 22, 2024, 3:04am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/2 "2024-04-22T03:04:24Z")

</div>

> [@anon68367223](#):
>
> site showing 403 access denied

Read

> [@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:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 5:24am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/3 "2024-04-22T05:24:04Z")

</div>

already folder contains index.html,styling.css, javascript.js ,every thing looks fine still im unable to browse the site

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 5:29am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/4 "2024-04-22T05:29:08Z")

</div>

and could not find any .htsss file in file manager,plz respond whats actually happening ,why this 403 access denied

---

<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:** [April 22, 2024, 5:35am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/5 "2024-04-22T05:35:10Z")

</div>

What is your website?

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 5:46am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/6 "2024-04-22T05:46:28Z")

</div>

[http://mathsmultiplicationgame.42web.io/](http://mathsmultiplicationgame.42web.io/)

---

<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:** [April 22, 2024, 5:48am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/7 "2024-04-22T05:48:25Z")

</div>

Please screenshot file directory of your hosting account

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 6:09am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/8 "2024-04-22T06:09:24Z")

</div>

![Screenshot 2024-04-22 113837](https://forum-cdn.infinityfree.net/original/3X/e/d/ed809d40e019bc5bb1b18ab147ea9052f3a6c92f.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 22, 2024, 9:34am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/9 "2024-04-22T09:34:55Z")

</div>

from that screen shot its not clear where you have uploaded the files, they should be uploaded to /htdocs if there is no index file here then you will receive a 403 error

if you find that the /htdocs folder has somehow been deleted then recreate it and upload there but I think if this was the case you would get a 404 error not 403

---

<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:** [April 22, 2024, 10:10am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/10 "2024-04-22T10:10:26Z")

</div>

Make sure to upload them to the correct `htdocs`, not a random `htdocs` that caught your sight right after logging in to FTP. The current symptom however looks like you’ve deleted the `htdocs`.

If you are uncertain about this please go to Client Area then current hosting account \> Domains, and recreate it.

* * *

> [@lovebug](#):
>
> if this was the case you would get a 404 error not 403

It’ll still be 403, but the [iFastNet](https://www.infinityfree.com/go/ifastnet) one.

---

<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:** [April 22, 2024, 5:56pm UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/11 "2024-04-22T17:56:37Z")

</div>

I checked your account.

The files are indeed uploaded to your account, but they are uploaded to a subfolder with the name `2. Maths Game (JS)`. So you will see your website is live on the URL followed by that sub path: [http://mathsmultiplicationgame.42web.io/2.%20Maths%20Game%20(JS)/](http://mathsmultiplicationgame.42web.io/2.%20Maths%20Game%20(JS)/)

If you don’t want the sub path to be required in the URL, simply move the files out of the subfolder and directly in the htdocs folder.

There is also a file `index.html_` in the htdocs folder. If you want that file to be used, it must be called exactly `index.html`.

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 6:13pm UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/12 "2024-04-22T18:13:34Z")

</div>

u mean we should not upload folder inside htdocs or what

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 22, 2024, 6:20pm UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/13 "2024-04-22T18:20:14Z")

</div>

not understand where is subfolder  
last time i uploaded in same way for one site that wroks properly.

---

<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:** [April 22, 2024, 7:33pm UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/14 "2024-04-22T19:33:22Z")

</div>

> [@anon68367223](#):
>
> u mean we should not upload folder inside htdocs or what

I mean that files will be available on the location you upload them to. If you want to upload a subfolder, you’re absolutely free to do so. But then the files will be available in that sub folder.

Servers are pretty dumb. They look for exact file names in exact locations. They won’t search for you and they won’t try to guess what you’re probably looking for. Either it’s exactly right or it’s wrong.

> [@anon68367223](#):
>
> not understand where is subfolder

The subfolder is in the htdocs folder:

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

When checking the files that have been uploaded, please make sure to check the actual files that have actually been uploaded. Not just what _should_ have been uploaded based on your local files.

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 23, 2024, 4:43am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/15 "2024-04-23T04:43:51Z")

</div>

anther issue that im facing ,the link you provide followed by the sub path is displaying in the pc but not on mobile phone showing(the site cant provide a secure connection).  
how to fix it

---

<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:** [April 23, 2024, 5:26am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/16 "2024-04-23T05:26:13Z")

</div>

> [@anon68367223](#):
>
> (the site cant provide a secure connection).  
> how to fix it

This

> [@How to get Free SSL (HTTPS) on InfinityFree](https://forum.infinityfree.com/docs?topic=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…

> [@How to force all traffic to HTTPS](https://forum.infinityfree.com/docs?topic=49322):
>
> After you’ve enabled SSL for your website, you’ll probably want to redirect all traffic on your website to the https version of your site. There are multiple ways to do that. Let’s compare some commonly used ways. Using script configuration Some scripts (including Wordpress) have a setting which allows you to set your website URL. By changing this URL from [http://example.com](http://example.com) to [https://example.com](https://example.com), the script will probably redirect visitors to the https version of your site. Even if your script…

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 23, 2024, 8:47am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/17 "2024-04-23T08:47:15Z")

</div>

did not understand properly ,plz provide more easy explanation.

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 23, 2024, 8:59am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/18 "2024-04-23T08:59:22Z")

</div>

and why is not my site mobile responsive

---

<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:** [April 23, 2024, 10:20am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/19 "2024-04-23T10:20:15Z")

</div>

> [@anon68367223](#):
>
> plz provide more easy explanation.

The Internet is complex. It’s not like click a button and everything is done — the guide we gave you above is already very detailed, and by simplifying it it will actually get more confusing.

So please try to understand — we already make everything as simple as possible.

> [@anon68367223](#):
>
> why is not my site mobile responsive

Ask yourself. A browser cannot guess what it should look like, it only shows what the website told it to show. If your styling didn’t tell the browser what your site should look like on mobile, then of course it won’t be responsive.

That is to say, sometimes by adding

```auto
<meta name="viewport" content="width=device-width, initial-scale=1.0">

```

into the `<head>` alone is enough. You can try that, however if it still don’t work, I’m afraid that you have to look into your code.

---

<div class="post-metadata">

**Author:** ![anon68367223](https://forum.infinityfree.com/letter_avatar/anon68367223/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon68367223](https://forum.infinityfree.com/u/anon68367223)\
**Post date:** [April 23, 2024, 10:48am UTC](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620/20 "2024-04-23T10:48:06Z")

</div>

just leave the styling ,  
site is still showing error 403 access denied in pc also .  
means its not displaying ,evrything look correct but still

[Next page](https://forum.infinityfree.com/t/site-showing-403-access-denied/92620.md?page=2)
