I tried convert .htaccess file to nginx config file. Here is .htaccess file. RewriteEngine On RewriteCond /var/www/html/usluno/coopshop/$1/$2 -f RewriteRule (bin|html|libs)/((.*)\.(htm|html|js|gif|jpg|png|css|ico|php|woff|svg|ttf|eot|pdf)$)/var/www/html/usluno/coopshop/$1/$2 RewriteRule \.(htm|html|js|gif|jpg|png|css|ico|php|pdf)$ - RewriteRule (tmp/backend|tmp/frontend|libs|htmby stanislavhosek - Migration from Other Servers