Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-06T16:28:58.270Z
Answers.Text: Thank's for the answer, but how can I change the path? I try with the .env without success...
Answers.UserDisplayName: gThiffault
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-06T17:14:16.807Z
Answers.Text: 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)
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-06T10:57:46.780Z
Answers.LastActivityDate: 2019-03-06T10:57:46.780Z
Answers.UserDisplayName: Robin Schambach
Body: <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>
  
Tags: <craft3>
Title: Homepage | Index of
ThreadText: # 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)  
  
  ---
  
  