yii2 BASIC deploying to x10hosting problem in running the site

I successfully upload my file to x10hosting

I followed this docs in yii2

http://www.yiiframework.com/doc-2.0/guide-tutorial-shared-hosting.html

what I did first is I put my project folder in my desktop

project folder is "expenses"

Now I renamed it from "expenses" to public_html as what is stated in yii docs.

I uploaded the folder public_html to webhost.

I put also .htaccess in inside web folder.




Options +FollowSymLinks

IndexIgnore */*


RewriteEngine on


# if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d


# otherwise forward it to index.php

RewriteRule . index.php



when I run my site in browser it gives me the listing directory of yiiframework

can you help me please why did is not working.

Thank you in advance.

it is a bug in htaccess.

doc