Custom Font is not (always) used

Hello Kirby Community,

I reasontly launched a redesign of this Website:

http://naturheilpraxis-kalbitz.de

Now the problem is, when referred to as

http://www.naturheilpraxis-kalbitz.de

the custom Font used to create the header and the menu is not used by the browser.

Do you have any ideas what I’ve been doing wrong?

Thanks for your help.

Benjamin

I can’t see any difference between the two, but you should decide which domain you want to use and then redirect one to the other to prevent duplicate content.

How are the fonts included?

Ok, I could reproduce this in Chrome on a subpage:

As you can see in the screenshot, this is a Cross Origin Issue

You either have to allow CORS in your server settings/htaccess, or prevent this by sticking to relative URLs or using one of the (sub-)domains only.

Wow, you are fast. Thanks for your help!

I just solved it by adding code to the .htacces file. Works, but feels kinda shaby.

# make http://www.[…] domains redirected to http://[…]
RewriteCond %{HTTP_HOST} ^www\.naturheilpraxis-kalbitz\.de$ [NC]
RewriteRule ^.*$ http://naturheilpraxis-kalbitz.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.craniosacraltherapie-kalbitz\.de$ [NC]
RewriteRule ^.*$ http://craniosacraltherapie-kalbitz.de/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.sikal-test\.de$ [NC]
RewriteRule ^.*$ http://sikal-test.de/$1 [R=301,L]

That’s perfectly alright :slight_smile:

Thank you for you awesome fast help!

1 Like