Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://site.ru/page/param"
Hello, what can be the problem when I set the parameter http://site.ru/page/param in param or I put an additional slash on the site, styles and scripts fly off, the console displays an error:
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://site.ru/page/param".
And points to the style connection string:
<link rel="stylesheet" type="text/css" href="../css/style.css">
Apache server, in .htaccess stands Options -Multiviews
1
1 answers
You specify a link relative to the current directory, you need to specify relative to the root directory, replace
href="../css/style.css"
On
href="/css/style.css"
1
Author: Apo-S, 2016-11-18 20:59:33