Veja como isso pode ser feito no Nginx ...
server { server_name domain.com; root /path/to/domain.com; index index.php; # or index.html or something that suits the application location ~ /Headdirectory/WWWDirectory/ { # do some stuff with WWWDirectory # something like try_files $uri =404; } location ~ /Headdirectory/ { rewrite ^/Headdirectory/(.*)$ /Headdirectory/WWWDirectory/$1 permanent; } # other blocks and directives location / { # do stuff with the root # such as try_files $uri =404; } }
Perguntas?