我在 Magento 中创建了单一商店网站。我已经编辑了数据库文件并在数据库中配置了 URL。我已经创建了虚拟主机。然而,来自服务器的新实时站点无法正常工作。该网站正在重定向到 localhost/dashboard。
您需要先按照以下步骤进行检查
删除您的
var/cache
文件夹。
从管理员处清除所有缓存。
从索引管理中重新索引所有内容
通过命令行重新索引
1 – 转到 Magento 安装中的“
shell
”文件夹:
cd shell
2 – 使用此命令执行重新索引:
php -f indexer.php reindexall
还有
检查您的 .htaccess 文件,您必须将服务器 .htaccess 文件替换为 Magento 默认 .htaccess 文件并且它可以工作。
请按照以下步骤操作:
删除缓存文件夹
打开命令提示符
运行以下命令:
a) del cache (删除 var/cache 文件夹) / 对于 linux (rm -fr /var/cache/*) b) php bin/magento 缓存:清理 c) php bin/magento 缓存:flush d) php bin/magento 索引器:reindex
在新浏览器选项卡中打开链接