Question2answer Nginx Rewrite规则

if ($request_uri ~* "\/\/") {
 rewrite ^/(.*) $scheme://$host/$1 permanent;
}

if (!-e $request_filename) {
 rewrite ^(.+)$ /index.php?qa-rewrite=$1 last;
 break;
}

vi /usr/local/nginx/conf/q2a.conf
vi /usr/local/nginx/conf/vhost/domain.com.conf
-include q2a.conf