문제

I'm using AWS CloudFront with Magento 2.4. When dev/static/sign is disabled, I have absolutely no issues with the CDN. When dev/static/sign is enabled though, all static resources are redirected to the origin url.

I've tried this and this, with no success.

Has anyone encountered this?

도움이 되었습니까?

해결책

I've found the solution to this issue.

My web root is MagentoDir/pub. In pub/static/.htaccess, the RewriteBase was set to /pub/static. When I changed that value to /static/, restarted apache and flushed Magento's caches, the problem was solved.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top