我知道这个问题在stackoverflow上被多次询问,但我找不到任何合适的解决方案 . 我正在使用Magento 2.1.7 . 成功安装Magento后,我点击"Launch Magento Admin",他们告诉我输入用户名和密码 . 但问题是我发现Admin Panel Login崩溃了,如下所示:Crashes Magento Login Admin PAnel
** EDIT2:这是我在运行此命令时得到的:php bin / magento setup:static-content:deploy ** Image
1 回答
您应该检查pub / static目录中是否有.htaccess文件:
https://github.com/magento/magento2/blob/2.1.4/pub/static/.htaccess
这将为版本URLS添加重写 .
版本用于缓存静态资产,你可以在这里阅读cachebusting:https://css-tricks.com/strategies-for-cache-busting-css/
希望这可以帮助