0

After changing domain name css js and links admin are not working in my site http://www.shopbrow.com/ i have change the base url and secure url and clean the cache folder after changing it but its not work After that i have followed the following tutorial Magento 2 CSS and JavaScript not loading from correct folder

its also not working for me can any one help me

  • Which wrong folder you are seeing in view source ? – Kishan Patadia May 29 '17 at 7:49
  • @ Kishan Patadia this is my site url can you please check it shopbrow.com there the folders and styles are in the path but its not showing while click on the url – amith lal May 29 '17 at 8:07
  • /pub/static/version1496046040/frontend/Mobac/porto/en_US/mage/calendar.css heare when i remove /version1496046040 i can access the style sheet – amith lal May 29 '17 at 8:24
  • first backup of url_rewrite table and url rewrite generate. and then php bin/magento cache:flush php bin/magento setup:static-content:deploy – pramod24 Mar 30 '18 at 15:06
1

Run following query in database

INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('default', 0, 'dev/static/sign', '0');

or if you have already value for that path, then change it from 1 to 0.

Then flush cache and deploy static content as follows.

php bin/magento cache:flush
php bin/magento setup:static-content:deploy
  • I have followed this but same result no changes – amith lal May 29 '17 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.