【问题标题】:Proceed to check out not working - magento继续检查不工作 - magento
【发布时间】:2014-07-28 11:10:38
【问题描述】:

当我点击继续结帐时,出现错误,

The requested URL /customer/account/login/ was not found on this server.

但是当我像下面这样手动修改网址时,

mydomain.com/index.php/customer/account/login 

它工作正常。

甚至当我点击主页中的Login 链接时,它也会使用 index.php 加载到正确的 url

我已尝试打开和关闭 URL 重写。我哪里错了。

我使用的是 magento 1.8 版

【问题讨论】:

    标签: magento url checkout magento-1.8


    【解决方案1】:

    在您的服务器上启用 apache 重写模块并重新启动它。

    【讨论】:

      【解决方案2】:

      您可以按照以下步骤操作

      然后使用以下步骤

      1) 使用 URL 登录到管理部分

      http://domain.com/index.php/admin
      

      2) 然后转到System >> Configuration >>Web >> Search Engines Optimization 使用 Web 服务器重写:是

      3) 转至System >> Configuration >>Web >>Secure 使用安全 URL 前端:是

      4) 然后在你的magento 安装文件夹下创建.htaccess 文件。 如果 magento 安装在文档根目录 (/home/username/public_html) 下,则将 follogig 规则添加到 .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>
      

      如果magento安装在/shop或目录下,则将以下规则添加到“/home/username/public_html/shop/.htaccess”文件中。

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

      希望这对你有帮助。

      【讨论】:

      • 它没有用。现在我除了主页之外的所有页面都显示错误。
      • 您是否清除了缓存。 ?并确保您正确遵循所有步骤?它应该工作。更重要的一件事是您的服务器配置启用重写模块
      • 是的,我确实清除了缓存并执行了所有步骤。当我给出以下sudo a2enmod rewrite。我收到了消息Module rewrite already enabled
      • 是的,我撤消了所有更改。
      • 请再次清除缓存并通过直接链接到登录页面进行检查
      【解决方案3】:

      我认为问题在于您的网址设置。试试下面的配置

      => 登录 admin 并转到 system -&gt; configuration

      => 从左上角的下拉选项中为您的网站选择合适的configuration scope

      => 现在转到secure 部分并将Base Link Url 设置为https://yourdomain.com/index.php

      假设您在安全部分的基本网址是https://localhost/magento,那么您需要将Base Link Url 设置为https://localhost/magento/index.php

      => 清除缓存。

      再试一次

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-09-19
        • 2014-02-17
        • 2014-08-25
        相关资源
        最近更新 更多