Nginx ReWrite Engine - Transform Apache Rules to Nginx <p>I need to transform those Apache rules to Nginx for my MVC. </p> <p>Apache Rules :</p> <pre><code>RewriteEngine on RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ %{DOCUMENT_ROOT}/system/maintenance.html [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RwriteRule ^(.+)$ index.php?url=$1 [QSA,L] </code></pre> <p>I think that some of it i can handle for the first part for the maintenance i think that this can help:</p> <pre><code>location / { root /var/www/myapp.com/current/public; try_files /system/maintenance.html $uri $uri/index.html $uri.html @app-server_cluster; </code></pre> <p>}</p> <p>but the second block of the QSA,L i don't know. </p> <p>Thanks for your Help!</p>