# Custom Font is not (always) used

**URL:** <https://forum.getkirby.com/t/custom-font-is-not-always-used/7610>\
**Category:** Questions\
**Tags:** v2\
**Created:** [May 29, 2017, 12:50pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610 "2017-05-29T12:50:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgierlich](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bgierlich/32/4216_2.png) [@bgierlich](https://forum.getkirby.com/u/bgierlich)\
**Post date:** [May 29, 2017, 12:50pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/1 "2017-05-29T12:50:55Z")

</div>

Hello Kirby Community,

I reasontly launched a redesign of this Website:

[http://naturheilpraxis-kalbitz.de](http://naturheilpraxis-kalbitz.de)

Now the problem is, when referred to as

[http://www.naturheilpraxis-kalbitz.de](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

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 29, 2017, 12:58pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/2 "2017-05-29T12:58:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 29, 2017, 1:08pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/3 "2017-05-29T13:08:43Z")

</div>

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

 ![](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/3/37124fdb62527b0dae4962e7a2814f1a460bda4a.png)

As you can see in the screenshot, this is a [Cross Origin Issue](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)…

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.

---

<div class="post-metadata">

**Author:** ![bgierlich](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bgierlich/32/4216_2.png) [@bgierlich](https://forum.getkirby.com/u/bgierlich)\
**Post date:** [May 29, 2017, 1:15pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/4 "2017-05-29T13:15:17Z")

</div>

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]
```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 29, 2017, 1:19pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/5 "2017-05-29T13:19:01Z")

</div>

That’s perfectly alright 🙂

---

<div class="post-metadata">

**Author:** ![bgierlich](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bgierlich/32/4216_2.png) [@bgierlich](https://forum.getkirby.com/u/bgierlich)\
**Post date:** [May 29, 2017, 1:20pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/6 "2017-05-29T13:20:13Z")

</div>

Thank you for you awesome fast help!

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:49pm UTC](https://forum.getkirby.com/t/custom-font-is-not-always-used/7610/7 "2025-02-06T16:49:51Z")

</div>


