Magento 正在重定向到 xampp 仪表板页面

问题描述 投票:0回答:2

我在 Magento 中创建了单一商店网站。我已经编辑了数据库文件并在数据库中配置了 URL。我已经创建了虚拟主机。然而,来自服务器的新实时站点无法正常工作。该网站正在重定向到 localhost/dashboard。

php magento
2个回答
0
投票

您需要先按照以下步骤进行检查

删除您的

var/cache
文件夹。

从管理员处清除所有缓存。

从索引管理中重新索引所有内容

通过命令行重新索引

1 – 转到 Magento 安装中的“

shell
”文件夹:

cd shell

2 – 使用此命令执行重新索引:

php -f indexer.php reindexall

还有

检查您的 .htaccess 文件,您必须将服务器 .htaccess 文件替换为 Magento 默认 .htaccess 文件并且它可以工作。


0
投票

请按照以下步骤操作:

  1. 删除缓存文件夹

  2. 打开命令提示符

  3. 运行以下命令:

    a) del cache (删除 var/cache 文件夹) / 对于 linux (rm -fr /var/cache/*) b) php bin/magento 缓存:清理 c) php bin/magento 缓存:flush d) php bin/magento 索引器:reindex

在新浏览器选项卡中打开链接

© www.soinside.com 2019 - 2024. All rights reserved.