Solved

Embedded font only displaying under www

Posted on 2014-03-31
5
487 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 83

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 83

Accepted Solution

by:
Dave Baldwin earned 500 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 83

Expert Comment

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

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
How do I pull the base url for use in html links 7 38
Wordpress Security 29 75
Print a <div></div> only 5 39
WordPress Page Content Lost 2 20
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

749 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