# Upload a site slimframework to amazone linux EC2

**URL:** <https://discourse.slimframework.com/t/upload-a-site-slimframework-to-amazone-linux-ec2/1463>\
**Category:** Questions\
**Created:** [May 2, 2017, 5:35pm UTC](https://discourse.slimframework.com/t/upload-a-site-slimframework-to-amazone-linux-ec2/1463 "2017-05-02T17:35:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![haizone](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@haizone](https://discourse.slimframework.com/u/haizone)\
**Post date:** [May 2, 2017, 5:35pm UTC](https://discourse.slimframework.com/t/upload-a-site-slimframework-to-amazone-linux-ec2/1463/1 "2017-05-02T17:35:42Z")

</div>

i try to upload my app to the server

i open a server with php.mysql,phpmyadmin

now whan i try to come in i see the files like this: enter image description here

 ![](https://canada1.discourse-cdn.com/flex030/uploads/slimframework/original/1X/78b8cb310c4128c98aa4627331ad77d82b6c6e67.png)

my index file is in folder: public

in my server i have a folder and then i have the app like this: [http://ec2-33-194-2.eu-west-1.compute.amazonaws.com/appname/](http://ec2-33-194-2.eu-west-1.compute.amazonaws.com/appname/)

i put a .htaccess in the folder appname

RewriteEngine On

Redirect Trailing Slashes If Not A Folder…  
RewriteCond %{REQUEST\_FILENAME} !-d RewriteRule ^(.\*)/$ /$1 [L,R=301]

RewriteCond %{REQUEST\_FILENAME} !-f RewriteRule ^ public/index.php [QSA,L] but the system not work 😕
