After downloading and installing Magento 2, I encountered a 404 error for scripts and css. A specific example of my image path is:
I attempted to address this issue with the following solution:
By opening up app/etc/di.xml and locating the virtualType named "developerMaterialization" section, you will find an item named "view_preprocessed" that requires modification or deletion. The contents should be changed from Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink to Magento\Framework\App\View\Asset\MaterializationStrategy\Copy
Upon inspecting my default di.xml file, I found:
<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>
Although I attempted to delete or change the symlink part to "copy", the issue persists. I have also set the file permissions to 777.