Drupal 7.23
CDN module 7.x-2.6
MaxCDN.com
The CDN functions normally for the web site, except for the @fontface embedded fonts. The following link gives instructions:
For the section starting with:
# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------
I copied and pasted these lines of code into several .htaccess files on my public shared web hosting provider, cleared cache and ran cron.
However, the @fontface and webfonts are still ignored.
Questions:
1. Where should the .htaccess file be located in the file directory structure?
2. Does the code in the MaxCDN link have to be modified in anyway for it to function for a particular web site?
Thanks,
Ted
Comments
Comment #1
TJM CreditAttribution: TJM commentedReconsidered.
I think I did not understand the purpose of the MaxCDN code for the fonts. The code applies to fonts that need to be accessed on another web site.
My issue is for fonts that are already on my Drupal sites. This is the file structure for the embedded fonts.
themes
---adaptivetheme
------at_admin
------at_core
------theme
---------css
------------fonts
--------------- font.eot
--------------- font.svg
--------------- font.ttf
--------------- font.woff
As soon as I disable the CDN module the embedded fonts display properly. As soon as I enable the CDN module the embedded fonts disappear.
Any clues would be appreciated,
Ted
Comment #2
Wim LeersIf you enable the CDN module's "Far Future expiration" mode, you'll automatically get CORS.