Answers.Body: <p>I found the problem, I guess it wasn't craft cms related. </p>
  
  <p>I had to update my apache2 site-enabled config file!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-10T11:50:12.087Z
Answers.LastActivityDate: 2017-12-10T11:50:12.087Z
Answers.UserDisplayName: Tony Garand
Answers.Body: <p>Ok here is a quick solution to your problem: </p>
  
  <ol>
  <li><p>Move all your public files to the same directory where your craft folder is.</p></li>
  <li><p>Change your Craft path in index.php file. </p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-10T10:03:19.913Z
Answers.LastActivityDate: 2017-12-10T10:03:19.913Z
Answers.UserDisplayName: hashtagerrors
Body: <p>I am uploading a repo that works fine on a staging server to a live server. When doing so however the homepage is showing as "index of \" page with the public and readme.md directories showing. Like so</p>
  
  <p><a href="https://i.sstatic.net/1Wudk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1Wudk.png" alt="enter image description here"></a></p>
  
  <p>When i click on the public link it brings me to  the page, however it has no public assets or css. it is just HTML.</p>
  
  <p><a href="https://i.sstatic.net/8LO1w.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8LO1w.png" alt="enter image description here"></a></p>
  
  <p>The database is linked properly. their are no errors that are showing as it is on dev mode. What can I do to fix this?</p>
  
  <p>Here is the file structure in my home directory which is proper.</p>
  
  <p><a href="https://i.sstatic.net/GdKWc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GdKWc.png" alt="enter image description here"></a></p>
  
  <p>Thank you for your time.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-10T09:18:14.037Z
Comments.Text: Could you please share how you have managed the `index.php` and `craft` folder inside your home directory
Comments.UserDisplayName: hashtagerrors
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-10T09:41:57.027Z
Comments.Text: I have added a screenshot of the file stucture.
Comments.UserDisplayName: Tony Garand
Tags: <assets><php><css>
Title: Homepage showing up as "index of \" page
ThreadText: # Homepage showing up as "index of \" page
  
  (Asked by: username_0 on 2017-12-10)
  
  I am uploading a repo that works fine on a staging server to a live server. When doing so however the homepage is showing as "index of \" page with the public and readme.md directories showing. Like so
  
  [![enter image description here](https://i.sstatic.net/1Wudk.png)](https://i.sstatic.net/1Wudk.png)
  
  When i click on the public link it brings me to the page, however it has no public assets or css. it is just HTML.
  
  [![enter image description here](https://i.sstatic.net/8LO1w.png)](https://i.sstatic.net/8LO1w.png)
  
  The database is linked properly. their are no errors that are showing as it is on dev mode. What can I do to fix this?
  
  Here is the file structure in my home directory which is proper.
  
  [![enter image description here](https://i.sstatic.net/GdKWc.png)](https://i.sstatic.net/GdKWc.png)
  
  Thank you for your time.
  
  **Tags:** assets, php, css
  
  > **Comments:**
  > **username_1**: Could you please share how you have managed the `index.php` and `craft` folder inside your home directory  
  > **username_0**: I have added a screenshot of the file stucture.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-12-10. Score: 2 | Accepted answer
  
  I found the problem, I guess it wasn't craft cms related.
  
  I had to update my apache2 site-enabled config file!
  
  
  ---
  
  ### Answer by username_1 on 2017-12-10. Score: 1
  
  Ok here is a quick solution to your problem:
  
  1. Move all your public files to the same directory where your craft folder is.
  2. Change your Craft path in index.php file.
  
  
  ---
  
  