繁体   English   中英

Magento 1.9 API / REST 404错误

[英]Magento 1.9 api/rest 404 error

最近,我移动了magento 1.9,但api / rest网址是404ing。

该站点在虚拟主机上的php 7.0上运行。

我已经添加了

<Directory /var/www/html/magento/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

但这不起作用:/

我还检查了.htaccess文件

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

api / rest在我的本地版本上可以正常工作,但在实时服务器上却不能。

任何帮助,这将是上帝送的:)

在.conf文件中,我需要删除Options Indexes FollowSymLinks

<Directory /var/www/html/magento>
      AllowOverride All
      # New directive needed in Apache 2.4.3:
      Require all granted
</Directory>

希望这可以帮助 :)

确保使用Options -MultiViews而不是Options FollowSymlinks

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM