【问题标题】:Magento - Currency - 404 Not Found - The requested URL /directory/currency/switch/currency/USD/ was not found on this serverMagento - Currency - 404 Not Found - 在此服务器上找不到请求的 URL /directory/currency/switch/currency/USD/
【发布时间】:2014-11-12 14:12:48
【问题描述】:

最近我买了主题,现在我遇到了货币问题。

当我切换货币时,我收到这样的消息:

The requested URL /directory/currency/switch/currency/USD/uenc/aHR0cDovL3ZvdmFuLm5pY2t3bGtlci5jb20v/ was not found on this server.

但如果我回去,我会看到货币变了。

如何防止这种“错误”?

【问题讨论】:

  • 我只能看到它有效。
  • 如果您将货币从“RUB”更改为“USD”,您会看到错误。

标签: magento url http-status-code-404 currency


【解决方案1】:

我找到了解决办法。

我需要从 magento 的 url 中删除 index.php。

我做到了:

1) 系统 >> 配置 >> 网站 >> 搜索引擎优化 >> 使用 Web 服务器重写:是

2) 系统 >> 配置 >> Web >> 安全 >> 使用安全 URL 前端:是

3) 然后在我的 magento 安装文件夹下创建 .htaccess 文件:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

感谢您尝试帮助我。

【讨论】:

    猜你喜欢
    • 2014-11-19
    • 2013-09-22
    • 2020-07-01
    • 2012-09-12
    • 1970-01-01
    • 1970-01-01
    • 2017-10-22
    • 2017-01-20
    • 1970-01-01
    相关资源
    最近更新 更多