Post by probotix » Thu Jun 04, 2015 12:26 am

I don't see any other topics addressing this, so maybe no one else has noticed this yet. The font-awesome icons show up as placeholder boxes on your site if someone accesses it without typing in the "www.". Or, at least it happens that way on my arvixe web server. I wasn't able to test it on any other sites because I don't know of any other sites running OC2+ and the "live shops" pages on the OC website have been hijacked by some theme websites.

I've found this to be a security feature of most current browsers. I have also found a solution. You need to add this to the root .htaccess file:

Code: Select all

# Allow access from all domains for webfonts. 
# Alternatively you could only whitelist your 
# subdomains like "subdomain.example.com". 
<IfModule mod_headers.c> 
	<FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css)$"> 
		Header set Access-Control-Allow-Origin "*" 
	</FilesMatch> 
</IfModule>
Hope this helps some others.

Thanks to this site for a description of the problem, as well as the solution:
http://meyermed.com/2015/03/fix-font-aw ... isplaying/

Newbie

Posts

Joined
Thu Apr 30, 2015 3:25 am

Post by rmullaney77 » Fri Apr 13, 2018 1:07 am

Could just force what you have in config.php using .htaccess to correct the issue for all resources ;)

Code: Select all

# Force SSL and WWW
RewriteCond %{SERVER_PORT} 80 [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L]
- OR -

Code: Select all

# No SSL or WWW
RewriteCond %{SERVER_PORT} !80 [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
Note: Examples should be after "RewriteEngine On" but before other "Redirect" or "RewriteCond" directives

See: http://httpd.apache.org/docs/current/mo ... ewritecond

User avatar
Active Member

Posts

Joined
Fri Nov 19, 2010 2:08 am
Location - Fort Payne, Alabama
Who is online

Users browsing this forum: No registered users and 16 guests