1
我正在運行啓用了多存儲的Prestashop 1.6。 默認URL爲http://192.168.1.217/prestashop161 我有另一家商店在這個網址http://192.168.1.217/prestashop161/shopa將apache http htaccess轉換爲Prestashop 1.6多存儲的nginx配置
當您更改設置,的Prestashop自動創建htaccess文件,但我使用nginx的,而我試圖端口配置。 下面是它是爲我htacess產生:
#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]
,這就是我的nginx已經試過:
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;
}