?
Solved

Embedded font only displaying under www

Posted on 2014-03-31
5
Medium Priority
?
500 Views
Last Modified: 2014-03-31
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
Comment
Question by:dresdena1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39967308
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
 

Author Comment

by:dresdena1
ID: 39967387
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
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 39967598
Redirect any non-www request to the www version of the page so that is always using http://www.fallwreaths.com/ .
0
 

Author Closing Comment

by:dresdena1
ID: 39968081
Thank you Dave!
Perfect!
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39968173
You're welcome, glad to help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question