2

Google Search Console is warning me about Mobile Friendly errors. But all the errors are coming from the assets folder where I keep my CSS and JS files. Can anyone can help explain these errors?

enter image description here

closed as too broad by dan Dec 15 '18 at 6:36

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • @Vivoth Are the errors on the actual .js and .css files themselves, or only on the folder containing them? It could be that your server is serving a directory listing when you go to the folder's URL, and the directory listing page itself is not mobile-friendly. – Maximillian Laumeister Dec 14 '18 at 4:05
  • @MaximillianLaumeister, It's not about .js or .css file error. It could be the server is serving a directory listing when I go to the folder's URL it list all file in directory. If so, what is the best practice to solve the problem ? – Vivoth Dec 14 '18 at 4:14
  • 1
    @Vivoth The simplest solution would be to disable directory listing for those folders. The process is different depending on what web server software you are using, but try Google searching "disable directory listing [name of server]". – Maximillian Laumeister Dec 14 '18 at 4:16
  • @MaximillianLaumeister, I will try to use .htaccess file to disable it. I will get back if it work. Thank for your comment – Vivoth Dec 14 '18 at 4:19
  • 1
    @Vivoth From my quick Google search, you should have Options -Indexes in the .htaccess file at the root of your website. – Maximillian Laumeister Dec 14 '18 at 4:21