Skip to content

Magento Css and Js are not loading

I have upgraded to Magento 2.4.3. Upgrade was successful but the layout is not proper.
Css and Js are not loading. I have tried every solution but none work. It show 404 not found for images and js function not found or no function defined and for css failed to load resources.

What I checked:

-> a2enmod rewrite is enable
-> apche conf is right
<Directory “/var/www/html”>
Options FollowSymLinks
AllowOverride All
Require all granted

-> pub/static contain .htaccess file
-> tried to load site through pub folder index.php but no change
-> Run all command setup,di-compile,deploy,cache-clean,flush,permission but
no change
-> I have checked all the requirement of Magento and all requirement are satisfied
-> change table value insert into core_config_data (config_id, scope, scope_id, path, value) values (null, ‘default’, 0, ‘dev/static/sign’, 0);

enter image description here