Magento网站显示“未找到”;在迁移服务器后单击页面链接


Magento site showing "not found" on clicking page link after migration the server

我已经将我的网站从一台服务器迁移到另一台服务器。现在它显示了它的登陆页面,但是当我点击任何链接时,它显示的页面没有找到。如果我手动把index.php与我的网站,那么它的工作。

的例子:

mysite.com此页面打开正常

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

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

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

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

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

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