converting apache http htaccess to nginx config for Prestashop 1.6 multi store
<p>I'm running Prestashop 1.6 with multi store enabled. 
Default url is <a href="http://192.168.1.217/prestashop161" rel="nofollow">http://192.168.1.217/prestashop161</a>
And I have another shop at this url <a href="http://192.168.1.217/prestashop161/shopa" rel="nofollow">http://192.168.1.217/prestashop161/shopa</a></p>

<p>When you change settings, Prestashop creates automatically the htaccess file, however I'm using nginx, and I'm trying to port the config.
Here is what it was generated for me in htacess:</p>

<pre><code>#Domain: 192.168.1.217
RewriteCond %{HTTP_HOST} ^192.168.1.217$
RewriteRule . - [E=REWRITEBASE:/prestashop161/shopa/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
</code></pre>

<p>and this is what I've tried in nginx:</p>

<pre><code>location /prestashop161 {
    root   E:\servers\htdocs;
    index  index.html index.htm index.php;
    rewrite '^/(shopa)$'     /$1/ redirect;
    rewrite ^/api$ /api/ last;
    rewrite ^/api/(.*)$ webservice/dispatcher.php?url=$1 last;
}
</code></pre>