Magento – Magento 2.2 CSS not loading

cssmagento2

I have installed Magento 2.2 on hosted server (rewrite mod is on) and I have since 2 days a problem with .css file.

First of all, I deactivated on MYSQL static sign – "dev/static/sign => 0", so I don't have any "version15…." folder on /pub/static/.

I have cleaned all cache files and deploy all the things, what magento needs:

rm -rf var/view_preprocessed/ var/cache/ var/page_cache/ var/tmp/ var/generation/ pub/static/frontend/
php bin/magento cache:flush 
php bin/magento indexer:reindex 
php bin/magento setup:upgrade 
php bin/magento setup:db-data:upgrade 
php bin/magento dev:source-theme:deploy 
php bin/magento setup:static-content:deploy 

If I launch my page on firefox, I see that Magento want access to https://www.at-handel.at/pub/static/adminhtml/Magento/backend/en_US/extjs/resources/css/ext-all.css

I checked the path and it's correct. I have ext-all.css file on this path, but Firefox/Internet Explorer/Safari don't show me. It's not only on frontend, it's also on backend – https://www.at-handel.at/arkaplan
I have also checked the permissons on /var or /pub/static/ - 755

What can I do now??? Please help me.

Best Answer

On Ubuntu 16.04, using apache2 I was also facing the same issue.

Activated the mod_rewrite module with

sudo a2enmod rewrite

and restarted the apache with

sudo service apache2 restart

My issue resolved.

Related Topic