Cakephp 3.0:重写.htaccess规则以允许新文件夹访问?

I'm using cakephp 3.0 and I'm facing a problem. I upload my site on server on root level, where I place some demos which I can use for other purpose. Now issue is that when I access my site with domain name then it is working fine. But if I give any folder name which is placed on root level which is not the part of my site and is indiviual part of site. Then it is not accessible.

Below is my folder structure of root level

enter image description here

There a single folder named gallery is a demo. How can I allow this folder to access like this http://hostname.com/gallery or any other new folder.

My .htaccess file code is:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
</IfModule>

Please help me on this issue which is more appreciable. Thanks in advance.

Just move your "gallery" folder under "webroot".

Try this it's worked for me.

create the .htaccess file in "gallary" folder with following content.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
</IfModule>

and try with URL http://server_name.com/gallary

You have access for that folder and files.

Thanks.