magento2 - 访问网站默认页404 - Flush magento cache
现象:浏览器访问域名,magento2站点出现页头,但主要内容显示404。用wget测试,也是返回404。但域名后加index.php正常。
尝试:
- 登录到magento站点后台,提示 One or more of the Cache Types are invalidated: Configuration, Page Cache. Please go to Cache Management and refresh cache types.
- system > cache management > 点击 Flush magento cache
之后访问域名,正常显示首页内容了。
参考:https://magento.stackexchange.com/questions/137362/cache-types-are-invalidated