A
A
Alinw2020-09-18 06:36:57
htaccess
Alinw, 2020-09-18 06:36:57

CSS is not connected on the site, what is the reason?

Stopped connecting css on the site. Before that everything was working fine. It is interesting that the admin panel authorization page is displayed normally.
It all looks like this:
In .htaccess it is:

RewriteEngine On

#Redirect with www-web-site on without www
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

#Redirect on https
RewriteEngine On
RewriteCond %{HTTPS} =off 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]

#Protecting your site from script injection

#Includes sim link tracking
Options +FollowSymLinks

#Start url_rewriting
RewriteEngine On

#Block all links contains <script>
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

#Blocks all scripts that try to change variables PHP Globals:
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

#Blocks all scripts that try to change variable _REQUEST:
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

#Redirects all such attempts to the 403 error page - forbidden
RewriteRule ^(.*)$ index.php [F,L]

#Redirect on home page
RewriteRule ^gofolder/(.*)$ https://domain.com/$1 [R=301,L,NC]



<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>


<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/javascript "access plus 3 days"
ExpiresByType text/javascript "access plus 3 days"
ExpiresByType text/css "access plus 3 days"
ExpiresByType image/gif "access plus 3 days"
ExpiresByType image/jpeg "access plus 3 days"
ExpiresByType image/png "access plus 3 days"
</IfModule>



#Redirects the request to index.php
<IfModule mod_rewrite.c>
  Options -Multiviews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule  ^(.+)$ index.php?url=$1 [QSA,L]
</IfModule>


Hosting is connected via cloudflare.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question