Skip to content
Advertisement

Problems with CSS search results on web sites [closed]

bro, if I may ask I have a CSS problem on the web, if I search the result of the web from Google it’s a mess like CSS doesn’t work … but if you search directly on the web url, it can please the solution, bro Thank you very much.

enter image description here

Advertisement

Answer

This happen because the CSS is loaded over HTTPS protocol and you accessing the website with HTTP protocol,

You can fix this with forcing user to use HTTPS, on .htaccess write:

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement