image not display yii2

Hello I can not display images in the frontend, I created a folder in the root of the project: app-Yu-advanced / images, inserissco dove pictures, and call like this: <img class = "en-scale overlay" src = "request-> baseurl $ dir $ gallery-> PHOTO_NAME> <? php $ Yii :: app -?> …?" alt = "picture" width = "800" height = "800"> and I get the path: localhost / app-yii-advanced / images / image1.jpg, but not the View

my .htaccess is locate from app-yii-advanced and the folder ha permission 777




Options +FollowSymlinks

RewriteEngine On


# deal with admin first

RewriteCond %{REQUEST_URI} ^/sites/advanced/(admin) 

RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L]

RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L]


RewriteCond %{REQUEST_URI} !^/sites/advanced/backend/web/(assets|css)/  

RewriteCond %{REQUEST_URI} ^/sites/advanced/(admin)  

RewriteRule ^.*$ backend/web/index.php [L]




RewriteCond %{REQUEST_URI} ^/sites/advanced/(assets|css)  

RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L]

RewriteRule ^assets/(.*)$ frontend/web/images/$1 [L]





RewriteRule ^css/(.*)$ frontend/web/css/$1 [L]


RewriteCond %{REQUEST_URI} !^/sites/advanced/(frontend|backend)/web/(assets|css)/  

RewriteCond %{REQUEST_URI} !index.php

RewriteCond %{REQUEST_FILENAME} !-f [OR]

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^.*$ frontend/web/index.php