cancel
Showing results for 
Search instead for 
Did you mean: 

CSS and JS missing after move to new domain

CSS and JS missing after move to new domain

After move site to new domain everything works fine but css and js are missed. /bin/magento setup:static-content:deploy and cache clean don`t solve the problem. Can you suggest another solution?

1 REPLY

Re: CSS and JS missing after move to new domain

Found an unexpected solution to the problem:

sudo gedit /etc/apache2/apache2.conf (or open file manually in your editor)

Change below code

From:

<Directory /var/www/>
     Options Indexes FollowSymLinks
     AllowOverride None
     Require all granted
</Directory>

TO:

<Directory "/var/www/html"> 
   Options Indexes FollowSymLinks 
   AllowOverride All 
   Require all granted 
</Directory>

Then restart apache2 by following command

sudo service apache2 restart