I created .htaccess file for the urlrewrite of the site that I'm working. After adding .htaccess it stopped loading JavaScript s and CSS s. So I then added AddType text/css .css
and AddType text/javascript .js
. But I get the same error. Following is my .htaccess code:
<IfModule mod_rewrite.c>
RewriteBase /downsouthlk.comV3/
RewriteEngine On
AddType text/css .css
AddType text/javascript .js
#Turn on the rewriting engine
RewriteRule ^admin/dash/?$ /admin/dash.php [NC,L]
RewriteRule ^admin/addcity/?$ /admin/addCity.php [NC,L]
</IfModule>
This is the error that I get from chrome developer options:
Resource interpreted as Script but transferred with MIME type text/html
Resource interpreted as Stylesheet but transferred with MIME type text/html