Nging redirection question


ok guys so i’ve moved my hosting to a new VPS

my question is this…

i have a site, for example

and there are posts on that site

i want every post/page whatever to be redirected to the main domain

check it out - (press f5, having css issues) it redirects, but doesnt rediect properly…

but if we do - it works…

how do i make the redirect work with a / ?


How are you currently doing your redirection?


in my /etc/nginx/sites-enabled/ i have the following

index  index.html index.htm;

location / {
    try_files $uri $uri/  =404;
    error_page 404 =200 /;

it looks right? but why isnt it working?


any ideas guys?