The index does not link the .css files. MIME error type text / html

0

After finishing my web site, I have uploaded it to the server, and I have the following error with the .css and .js files:

I have looked for a solution and there is no way. I think it's due to a problem with the routes. If someone has experienced something similar and wants to share a solution, I would appreciate it. I add capture of how I link the files:

I also add the structure of my project in case it can help:

    
asked by user8584896 15.09.2018 в 17:23
source

3 answers

1

I have finally managed to fix the error and know what it was about. I want to share it here to thank those who have tried to help me and so that someone with the same problem can solve it. The problem was the following: - It did not link well the routes from my .html to the files .css, img and others because in the server where my web is hosted uses a Linux distro, so it is case sensitive, so I had folders that started with Mayus as Resources and on the route I wrote it as resources.

This was the fault, an idiocy, but I hope it will work for someone later.

    
answered by 16.09.2018 / 22:58
source
0

Sometimes the same thing has happened to me, and the only thing that has changed has been the following:

  • Use only type="text / css" (remove the).
  • Place a / in front of the path so that it takes as a reference the root of the project.

Are you using a framework?

I hope my answer is helpful.

    
answered by 15.09.2018 в 19:11
0

Test with href="./resources/css/bootstrap.min.css"

    
answered by 15.09.2018 в 19:39