Question

i have upgraded magento 2.2.6 to magento 2.4.2 successfully But css is not getting reflected

enter image description here

I am able to login successfully. But not able to find the solution.

I have made dev/static/sign = 0
reindexing done
setup-content:deploy -f done

Was it helpful?

Solution

Check that your webserver serves the requests from the proper location. it should be referencing the <magento_proj_root>/pub folder as Document Root.

enter image description here

https://devdocs.magento.com/guides/v2.4/install-gde/tutorials/change-docroot-to-pub.html


Later edit

Also see this thread where I explained the settings for URLs when using a virtual host The requested URL /pub/ was not found on this server. - Magento .htaccess problem

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top