Nging redirection question

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

my question is this…

i have a site, abc.com for example

and there are posts on that site

abc.com/test/

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

check it out -

mahirsayar.com (press f5, having css issues) mahirsayar.com/test/ it redirects, but doesnt rediect properly…

but if we do

mahirsayar.com/test - it works…

how do i make the redirect work with a / ?

How are you currently doing your redirection?

in my /etc/nginx/sites-enabled/mahirsayar.com 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?