【问题标题】:Magento site showing "not found" on clicking page link after migration the serverMagento 站点在迁移服务器后单击页面链接时显示“未找到”
【发布时间】:2014-07-17 10:07:19
【问题描述】:

我已将我的网站从一台服务器迁移到另一台服务器。现在它显示了它的登录页面,但是当我点击任何链接时,它显示页面未找到。如果我手动将index.php 放在我的网站上,那么它就可以工作了。

例子:

mysite.com此页面正在完美打开。

mysite.com/about此页面显示错误。

mysite.com/index.php/about此页面也可以正常工作。

在我的网站上,每个链接都没有index.php

我该怎么办??在 magento 或 .htaccess 文件中

【问题讨论】:

    标签: php .htaccess magento


    【解决方案1】:

    在根目录下创建.htaccess文件,内容如下

    RewriteEngine on 
    
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^(.+)(?<!\.php)$ index.php/$1 [QSA,L]
    

    【讨论】:

      猜你喜欢
      • 2020-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-01
      • 2021-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多