Upload a site slimframework to amazone linux EC2

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

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/

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