<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>

CC BY-SA 3.0
2017-12-10T11:50:12.087Z
2017-12-10T11:50:12.087Z
Tony Garand
<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>

CC BY-SA 3.0
2017-12-10T10:03:19.913Z
2017-12-10T10:03:19.913Z
hashtagerrors
<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>

CC BY-SA 3.0
2017-12-10T09:18:14.037Z
Could you please share how you have managed the `index.php` and `craft` folder inside your home directory
hashtagerrors
CC BY-SA 3.0
2017-12-10T09:41:57.027Z
I have added a screenshot of the file stucture.
Tony Garand
<assets><php><css>
Homepage showing up as "index of \" page
# 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.


---

