Newbie question re .htaccess

Hi

I have just downloaded the Yii2 for the first time and following the manual to start using it. I have successfully downloaded the basic template and put it inot my web root folder. (I use OpenServer on my dev machine, so the path is c:\OpenServer\domains\basic).

I can successfully open the index page by requesting basic/web/index.php

Next, what see in the manual, I can configure the virtual host using .htaccess file so I can open the page with basic/index.php

In order to do that (according to the manual) I have to put the follwoing .htaccess into the root folder:

Set document root to be "basic/web"

DocumentRoot "path/to/basic/web"

<Directory "path/to/basic/web">

# use mod_rewrite for pretty URL support


RewriteEngine on


# If a directory or a file exists, use the request directly


RewriteCond %{REQUEST_FILENAME} &#33;-f


RewriteCond %{REQUEST_FILENAME} &#33;-d


# Otherwise forward the request to index.php


RewriteRule . index.php





# ...other settings...

</Directory>

So I use basic/web as "path/to/basic/web". But Apache gives error 500 when trying to open the app either with basic/web/index.php or basic/index.php…

What could be the error? Please help…