I have a secondary website under the root folder. I have example.com as the main domain. Create a new website with website code ir. And the url links to ir folder. Added .htaccess and index.php with the modification as per the website load. Created symbolic links ln -s /var/www/html/example/app/ app etc. Still after doing all this when i load the secondary site example.com/ir the css url are example.com/ir/pub/static/frontend/Magento/blank/en_GB/css/styles-m.css which does not exist.

  • You need to create symbolic link for pub folder for your new website. Nov 1, 2018 at 9:17
  • can you copy/paste index.php from /ir/ subfolder? Probably missing correct path for media/ js/css. Nov 1, 2018 at 10:32

1 Answer 1


Try to Run this Below Command.

php bin/magento ma:en && php bin/magento s:up && php bin/magento s:d:c && php bin/magento s:s:d en_US && php bin/magento s:s:d en_GB && php bin/magento ma:di

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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