Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
876 views
in Q2A Core by
edited by
location / {
    index index.php index.html index.htm;
    if (!-e $request_filename) {
       rewrite ^/(.+)?$ /index.php?qa-rewrite=$1 last;
    }
}
Q2A version: 1.6

1 Answer

+1 vote
by
and subfolder

        location /qa {
                index index.php index.html index.htm;
                 if (!-e $fastcgi_script_name) {
                rewrite ^/qa/(.+)?$ /qa/index.php?qa-rewrite=$1 last;
         }

}
...