brandondawson.org Drupal Website Developer and Consultant

20Feb/110

@font-face not working with firefox resulting in 206 “Partial Content”

Solution is simply to make sure you're calling the typeface using @font-face from the same subdomain as you are the rest of the site. (In other words, make sure your use of "www." matches both how you're trying to view the site and how it's being pulled by @font-face in your stylesheet.)

I usually use an .htaccess file to do this, which in this case I'd temporarily commented out, then forgotten. That code is:



#comment and uncomment as needed
#RewriteCond %{HTTP_HOST} ^your-site-here\.com$ [NC]
#RewriteRule ^(.*)$ http://www.your-site-here.com/$1 [L,R=301]
# uncomment the following as well:
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]


@font-face not working with firefox

26Apr/100

Self-inflicted facepalm #97129

I just figured I'd drop a brief note here, for posterity, to assist others who fail to inspect their own .htaccess files to see if, perhaps, they've restricted access to only their IP address, and have embarked on a wild goose chase to track down an obscure "client denied by server configuration" error.

I spent an hour researching this issue this evening. The Googles present a wide variety of potential fixes, but it turns out that the real problem was that I'd outsmarted myself by restricting a particular directory to my old IP address via an .htaccess file.