Magento 2 をダウンロードしてインストールしましたが、スクリプトと CSS で 404 エラーが発生します。私のイメージ パスの例: http://www.arredomobilionline.com/pub/static/frontend/Magento/luma/it_IT/images/logo.svg
私はすでにこの解決策を試しました:
app/etc/di.xml を開き、virtualType name="developerMaterialization" セクションを見つけます。そのセクションには、変更または削除する必要がある項目 name="view_preprocessed" があります。内容を Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink から Magento\Framework\App\View\Asset\MaterializationStrategy\Copy に変更することで変更できます。
私のデフォルトの di.xml ファイル内には、デフォルトとして次のものがあります。
<virtualType name="developerMaterialization" type="Magento\Framework\App\View\Asset\MaterializationStrategy\Factory">
<arguments>
<argument name="strategiesList" xsi:type="array">
<item name="view_preprocessed" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink</item>
<item name="default" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Copy</item>
</argument>
</arguments>
</virtualType>
最初のシンボリックリンク部分を削除するか、「コピー」に変更しようとしましたが、うまくいきません。また、すべてのファイルに 777 パーミッションを設定しました。