The correct rule of rewrite for nginx Question2Answer

The correct rule of rewrite for nginx Question2Answer

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

and for q2a in subfolder

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

}

With these configurations, your Nginx server should be properly set up to handle Q2A whether it’s installed in the root directory or within a subfolder. These steps ensure URL rewriting is configured correctly, which is essential for the Q2A application to function as expected.

Team
Team

This account on Doubtly.in is managed by the core team of Doubtly.

Articles: 483

jsDelivr CDN plugin by Nextgenthemes

These are the assets loaded from jsDelivr CDN. Do not worry about old WP versions in the URLs, this is simply because the files were not modified. A sha384 hash check is used so you can be 100% sure the files loaded from jsDelivr are the exact same files that would be served from your server.


	

Level up your video embeds with ARVE or ARVE Pro