cancel
Showing results for 
Search instead for 
Did you mean: 

moved magento to localhost (win10), css, js wont load

moved magento to localhost (win10), css, js wont load

I moved a magento site from a liveserver to localhost (windows 10) and the css and js wont load

 

I have found this solution but it is for mac, can I make this work on windows?

 

https://magento.stackexchange.com/questions/221974/magento-2-not-getting-js-and-css-after-server-cha...

2 REPLIES 2

Re: moved magento to localhost (win10), css, js wont load

Hi @alecom2go,

 Please deploy following commands from root folder in the sequence once and check.

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/

I hope it will help you!

Re: moved magento to localhost (win10), css, js wont load

deploy the first two commands? or also the ones that are in grey?