[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

Embedded font only displaying under www

EE,
I have embedded fonts in a website:
www.fallwreaths.com

In IE and FireFox the embedded fonts only show up if the browser is in www.fallwreaths.com 

When the browser is http://fallwreaths.com the embedded fonts do not load.

Is there something I should do to get the fonts to load under both instances?

Thank you,
dresdena1
0
dresdena1
Asked:
dresdena1
  • 3
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
The Firefox Error Console shows this cross-site access error.  It is because you are using absolute paths and file names.  Since your fonts appear to be in the main directory, you might be able to use just the file name like 'breeserif-regular-webfont.woff' and get it to load in both circumstances.
downloadable font: download failed (font-family: "bree_serifregular" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/breeserif-regular-webfont.woff cssfw.css
downloadable font: download failed (font-family: "tangerineregular" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/tangerine_regular-webfont.woff cssfw.css
downloadable font: download failed (font-family: "bree_serifregular" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/breeserif-regular-webfont.ttf cssfw.css
downloadable font: no supported format found (font-family: "bree_serifregular" style:normal weight:normal stretch:normal src index:4)
source: (end of source list) cssfw.css
downloadable font: download failed (font-family: "tangerineregular" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/tangerine_regular-webfont.ttf cssfw.css
downloadable font: no supported format found (font-family: "tangerineregular" style:normal weight:normal stretch:normal src index:4)
source: (end of source list) cssfw.css

Open in new window

0
 
dresdena1Author Commented:
Dave Baldwin,
Thanks for the quick response!
The css file in a different directory (publish) than the rest of the pages.
The cart (ShopSite) is setup that way. The CSS is generated in a separate directory.
That's why I use absolute paths.
Do you have any thoughts on a workaround?

dresdena1
0
 
Dave BaldwinFixer of ProblemsCommented:
Redirect any non-www request to the www version of the page so that is always using http://www.fallwreaths.com/ .
0
 
dresdena1Author Commented:
Thank you Dave!
Perfect!
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now