When a user visits www.website.com I would like to server content as if the user went to www.website.com/frontend/. However, I want to mask the /frontend/ part of the url so the user doesn't see it. Can this be done?
What would my rewrite rule look like?
SOLVED:
location = / {
rewrite ^/$ /frontend/ last;
}
My issue was
location = / {} #Matches the path project.example.com only (mind there is a =)
location / {} #Matches every path (mind: there is no =)