files upload folder in root directory of project

Hello all,

how to keep Files upload folder in root directory of project.

which change need in htaccess?


Options -Indexes

<IfModule mod_rewrite.c> 

  RewriteEngine on

  RewriteCond %{REQUEST_URI} !^public

  RewriteRule ^admin(.+)?$ backend/web/$1 [L,PT]

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


# Deny accessing below extensions

<Files ~ "(.json|.lock|.git)">

Order allow,deny

Deny from all


# Deny accessing dot files

RewriteRule (^\.|/\.) - [F]



Upload itself is not affected by web server in any way so configuring it is not relevant. Please describe what do you want to achieve.

currently my image files are store in


i want to upload dynamic files in

root folder of project ie project/uploadImage

What’s the problem with changing path?