我在我的WAMP服务器上安装了Magento2。而当我试图访问http://127.0.0.1/magento2/admin/其重定向到http://localhost/admin/admin/dashboard/(一个无效的URL)?Magento2:管理员重定向问题
您有解决方案吗?
谢谢你的时间。 Labeeb
我在我的WAMP服务器上安装了Magento2。而当我试图访问http://127.0.0.1/magento2/admin/其重定向到http://localhost/admin/admin/dashboard/(一个无效的URL)?Magento2:管理员重定向问题
您有解决方案吗?
谢谢你的时间。 Labeeb
应用程序的/ etc/env.php应该像这样开头的文件。检查你的后端frontName :)
<?php
return array (
'backend' =>
array (
'frontName' => 'admin_xu4zwa',
),
我们还可以通过使用命令
$ php bin/magento info:adminuri
您需要检查以下内容
变化表core_config_data
的BASE_URL值http://127.0.0.1/magento2/
而不是http://localhost/magento2/
,你可以找到使用 SELECT * FROM core_config_data WHERE path='web/unsecure/base_url';
在表中的记录。从core_config_data表
变化基本URL和检查frontName在应用程序的/ etc/env.php文件。希望,这会有所帮助。
你能提供一个前端网址吗? –
检查后端名称和基址参数。 –
从env.php文件检查你的管理网址它是管理员或其他东西..它将在应用程序/ etc/evn.php –