Skip to content

Instantly share code, notes, and snippets.

@ikedahidenori
Created February 24, 2013 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikedahidenori/5024302 to your computer and use it in GitHub Desktop.
Save ikedahidenori/5024302 to your computer and use it in GitHub Desktop.
【助けて】さくらのサーバーだとIE9以降でwebfontが文字化けする ref: http://qiita.com/items/a33236a40986cd22f37d
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/woff .woff
RewriteEngine on
RewriteBase /
RewriteRule (.*).(eot|eot#iefix|ttf|otf|woff)$ assets/fonts/proxy.php?url=$1.$2 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment