【问题标题】:Magento 1.9 api/rest 404 errorMagento 1.9 api/rest 404 错误
【发布时间】:2018-05-22 12:01:51
【问题描述】:

最近我移动了一个 magento 1.9,但 api/rest url 是 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 在我的本地版本上运行良好,但在实时服务器上却不行。

对此的任何帮助都将是上帝的帮助:)

【问题讨论】:

    标签: php magento magento-1.9 virtualhost


    【解决方案1】:

    解决方案

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

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

    希望这会有所帮助:)

    【讨论】:

    • 你能告诉我文件位置吗?
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-16
      • 1970-01-01
      • 2013-07-21
      • 1970-01-01
      • 2016-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多