/ / nginx सर्वर में htaccess रिडायरेक्ट की अनुमति दें

nginx सर्वर में htaccess रीडायरेक्ट की अनुमति दें - .htaccess, nginx

यहाँ nginx सर्वर में मेरा htaccess फ़ाइल है, लेकिन काम नहीं कर रहा है मैं url निम्नलिखित की तरह index.html चलाना चाहता हूँ

http://domain.com//folder1/folder2/?a=af.jpg
   <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /folder1/folder2/
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn"t true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.html?/$1

</IfModule>

उत्तर:

उत्तर № 1 के लिए 1

निम्नलिखित नियम आज़माएं:

location /folder1/folder2/ {
if (!-e $request_filename){
rewrite ^/folder1/folder2/(.*)$ /folder1/folder2/index.html?/$1;
}
}