<p>Your web server doesn't point to your <code>web</code> directory. In order to see your homepage directly you need to change the path your URL points to</p>

CC BY-SA 4.0
2019-03-06T16:28:58.270Z
Thank's for the answer, but how can I change the path? I try with the .env without success...
gThiffault
CC BY-SA 4.0
2019-03-06T17:14:16.807Z
That's a setting in your web server and can't be done via Craft nor your PHP files. The only thing you could do is to move your index PHP from your web directory but I would really highly suggest not to do that cause it's a security lack (cause users will be able to access your server and your config files)
Robin Schambach
CC BY-SA 4.0
2019-03-06T10:57:46.780Z
2019-03-06T10:57:46.780Z
Robin Schambach
<p>I want to create a staging site, on our production site and I dont know why on the homepage we've got an index of all the folders and if we click on web's folder, we can view the site.</p>

<p>Someone had an idea to solde this problem?</p>

<craft3>
Homepage | Index of
# Homepage | Index of

(Asked by: username_0 on 2019-03-06)

I want to create a staging site, on our production site and I dont know why on the homepage we've got an index of all the folders and if we click on web's folder, we can view the site.

Someone had an idea to solde this problem?

**Tags:** craft3


---

## 1 answers

### Answer by username_1 on 2019-03-06. Score: 1 | Accepted answer

Your web server doesn't point to your `web` directory. In order to see your homepage directly you need to change the path your URL points to

> **Comments:**
> **username_0**: Thank's for the answer, but how can I change the path? I try with the .env without success...  
> **username_1**: That's a setting in your web server and can't be done via Craft nor your PHP files. The only thing you could do is to move your index PHP from your web directory but I would really highly suggest not to do that cause it's a security lack (cause users will be able to access your server and your config files)  

---

