Home › Forums › Use Any Fonts › Font doesn't work on redirection
Hello
I have enabled the plugin Use Any Font on my WordPress for my client, website http://gofastway.tv
Status: Active – Server Connectivity Test Test Successfull
When access the site http://gofastway.tv/ Montserrat font (Light, Black, Rugular, Hairline and Bold) works well.
But if I access http://zerok.pt/ that redirects to the gofastway.tv site – Every font is lost.
Any recommendations?
Hi,
Any chance you can enable relative path option from additional settings and try ?
Thanks
Hi there!
The option was marked and had no changes.
Look – http://prntscr.com/atvuyi
There is cross domain issue as well. So can you please keep this code in your htaccess file ?
<FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
This should allow the font loading in another domain.
Hello!
I had tried before, I changed these lines of your code, but still did not work.
My .htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch> # END WordPress
I just checked your both site and the font are working fine in both. Can you please confirm ?
Hi!
I checked again. It all seems ok .
Thank you very much!