Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1326842

    Hi

    I have a problem with my site’s fonts: babyluv.ee
    I added the following code to the htaccess:

    <FilesMatch “.(ttf|otf|woff)$”>
    Header set Access-Control-Allow-Origin “*”
    </FilesMatch>

    It’s a part from a wp multisite. How can I add fonts to both sites?

    #1327081

    Hey Imtheguy,
    Thank you for your patience, is this added the babyluvstudio.com htaccess?
    I believe you should be using mod_headers.c like this, are you sure your server is Apache and your mod_headers are enabled?

    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>

    if mod_headers are not enabled then it won’t work, try asking your webhost if they are enabled, because if they are not the server will have to be restarted by the webhost.

    Best regards,
    Mike

    #1327109

    Hi

    babyluvstudio.com uses the same htaccess as babyluv.ee. It’s parked domain. Does that change anything?

    #1327123

    Hi,
    That doesn’t seem correct, I believe you mean that it is an addon domain and each domain has its own directory and each directory has a .htaccess file. Did you try the code I posted? Did you confirm that your mod_headers are enabled?

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.