1

I am using Magento latest version Magneto2.1.3 when I run this command and check admin/frontend I face Js missing issue in console..

Command Run :: php bin/magento setup:static-content:deploy

Issue ::

Js missing whole pages.

enter image description here

2

I have just face this issue.

This issue has been raised due to mod_rewrite.

If you goes to pub/static/.htaccess. at there in .htacess have some rewrite rules for Remove signature of the static files that is used to overcome the browser cache from static content. That is not working that what why in static content urls is look like

www.example.com/pub/static/version[Version].....

See at

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Remove signature of the static files that is used to overcome the browser cache
    RewriteRule ^version.+?/(.+)$ $1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l

    RewriteRule .* ../static.php?resource=$0 [L]
</IfModule>

Solution

May be in your mod_rewrite does not enable properly.You should enable it properly in order to resolve your problem.

  • You should enable it properly in order to resolve your problem..'- HOW?? – Magento2 Devloper Jan 18 '17 at 14:41
  • What is your have use? – Amit Bera Jan 18 '17 at 14:42
  • can you share your .htaccess working file? – Magento2 Devloper Jan 18 '17 at 14:55
  • askubuntu.com/a/538212 please check this url – Amit Bera Jan 18 '17 at 15:06
  • @AmitBera i am having same issue frontend is working properly but backend gives me 404 error for js files, I tried your solution but no luck – ND17 Jan 19 '17 at 6:00

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.