Nging redirection question


#1

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 / ?


#2

How are you currently doing your redirection?


#3

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?


#4

any ideas guys?


#5