0

Magento1.7には新しいRESTAPIがあり、.htaccessファイルの新しい書き換えルールもあります。nginxで新しいルールを書き直すにはどうすればよいですか?

############################################
## uncomment next line to enable light API calls processing

#    RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]

############################################
## rewrite API2 calls to api.php (by now it is REST only)

    RewriteRule ^api/rest api.php?type=rest [QSA,L]
4

1 に答える 1

2

どうぞ:

location /api {
  rewrite ^/api/rest /api.php?type=rest break;
}
于 2012-09-11T10:11:10.720 に答える