Apache to Ngnix Rewrite to a Directory confusion
- by Robin
i could use a little help with rewrite and nginx...
Basically the structure of my App looks like this
Headdirectory --
-APPBase
-SomeMoreStuff
-WWWDirectory
.htaccess
So i need to redirect into the WWWDirectory when i open the Headdirectory.
In Apache its done with a htaccess and the following Content :
RewriteEngine On
RewriteRule ^(.*) www/$1
I already tried in Nginx :
location /Headdirectory {
rewrite ^/(.*) /www/$1;
}
And i tried to create an Alias but that didnt work...
Would be nice if someone could help me out.
Have a nice Day