Hey. Help set up htaccess on the nginx + apache2 server; there is a directory for the project /var/www/site.com. Htaccess is in this directory. request site.com/asd showed a land from webroot / asd

I try to do so

RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_URI} ^/license(.*)$ [NC,OR] RewriteCond %{REQUEST_URI} ^/tender(.*)$ [NC] RewriteRule ^(.*)$ webroot/$1 [R=301,L] 

as well as tried

 RewriteEngine On Options +FollowSymLinks RewriteRule ^tender$ webroot/tender$1 

Not in any way arbeiten. Where to look?

mod_rewrite works

    1 answer 1

    It will not work this way, htaccess does not see symlinks, this webroot doesn’t say anything to it, it just obviously substitutes it. I had a similar problem: .htaccess, an internal redirect from a subdomain to the main domain was told that we could limit ourselves to one symlink.