Solved

Embedded font only displaying under www

Posted on 2014-03-31
5
480 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
  • 3
  • 2
5 Comments
 
LVL 82

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 82

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 82

Expert Comment

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now