B
B
BonBon Slick2017-06-23 22:06:37
css
BonBon Slick, 2017-06-23 22:06:37

The CSS file has Content-Type:text/html; charset=utf-8?

HTML

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" media="all" href="/assets/css/bootstrap.min.css">

Apache
AuthType Basic
AuthName "Thats protected Area!"
AuthUserFile /var/www/my_site/public/.htpasswd
#Require valid-user
#Deny from all
Allow from 91.228.**** 192.**** 94.****
Allow from 127.0.0.1 ::1 localhost
Satisfy any
<Files /var/www/html/my_site.info/public/.htpasswd>
   deny from all
</Files>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^phpmyadmin - [L,NC]
    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^my_site/.*$ /my_site/index.php [NC,L]
    RewriteRule ^ index.php [L]
</IfModule>

File response:
General

Request URL:my_site_link/bootstrap.min.css
Request Method:GET
Status Code:200 OK
Remote Address:94.****0
Referrer Policy:no-referrer-when-downgrade

Response Headers

Accept-Ranges:bytes
Connection:Keep-Alive
Content-Type:text/html; charset=utf-8
Date:Fri, 23 Jun 2017 20:12:30 GMT
Keep-Alive:timeout=5, max=100
Server:Apache/2.4.7 (Ubuntu)
Transfer-Encoding:chunked
X-Powered-By:PHP/5.5.9-1ubuntu4.21

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Korobkov, 2017-06-23
@BonBonSlick

This means that the file /var/www/html/my_site.info/public/assets/css/bootstrap.min.css does not exist or is not accessible, so the redirect to index.php is triggered, which istext/html; charset=utf-8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question