I recently moved a website from a subfolder and I'm having difficulty understanding how to do URL rewrites in NGINX so external links to the website will still work.
Basically, I need links to http://example.com/abc to redirect to http://example.com
This is the first time I've had to deal with this on NGINX so forgive me if this is ridiculously simple to do. Here's what I think I need to put in the NGINX config file:
server {
    listen       80;
    server_name  example.com/abc;
    return       301 http://www.example.com;
}
Am I on the right track?
 
     
    