Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+8 votes
1.8k 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

2 Answers

+5 votes
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;
         }

}
by
thx for this
0 votes
by
Thanks, it worked
...